From 4b98ab974e28f8757851c63aa49e157cda4c2a4f Mon Sep 17 00:00:00 2001 From: MineRobber9000 Date: Tue, 16 Dec 2025 23:52:01 -0500 Subject: [PATCH] fix[docs]: fix errors in docs/overview.md - The default `pack.mcmeta` has changed, so a comparison that was probably intended to return True instead returned False. - Commit `5d003d3` replaced `Pack.content` with `Pack.all()`, but this doc was never updated to match. --- docs/overview.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/overview.md b/docs/overview.md index 7aeddaea1..71fe59365 100644 --- a/docs/overview.md +++ b/docs/overview.md @@ -95,12 +95,12 @@ pack.functions == { Unfortunately, data packs and resource packs aren't limited to neatly namespaced files and can contain extra files at the pack level and at the namespace level. Still, the `beet` library handles extra files as first-class citizens. In fact, `pack.mcmeta` and `pack.png` are both handled through this mechanism. ```py -from beet import JsonFile +from beet import Mcmeta pack = DataPack() pack.extra == { - "pack.mcmeta": JsonFile({"pack": {"description": "", "pack_format": 6}}) + "pack.mcmeta": Mcmeta({'pack': {'min_format': (88, 0), 'max_format': (88, 0), 'description': ''}}) } ``` @@ -233,7 +233,7 @@ p2["demo:bar"] = Function(["say world"], tags=["minecraft:tick"]) p1.merge(p2) -dict(p1.content) == { +dict(p1.all()) == { "demo:foo": Function(["say hello"]), "demo:bar": Function(["say world"]), "minecraft:tick": FunctionTag({"values": ["demo:foo", "demo:bar"]}),