Skip to content

Commit 7f28b84

Browse files
committed
Fix metallurgy RP
1 parent dd09024 commit 7f28b84

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

gm4_metallurgy/shamir_model_template.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,19 +66,16 @@ class ShamirTemplate(TemplateOptions):
6666
metal: Literal["aluminium", "barimium", "barium", "bismuth", "curies_bismium", "thorium"] # the metallurgy metal this shamir is made of
6767

6868
_item_def_map: dict[str, JsonType] = {}
69-
_model_overrides_1_21_3: dict[str, list[JsonType]] = {} # NOTE to be removed in 1.21.5
7069

7170
bound_ctx: ClassVar[Context]
7271
metallurgy_assets: ClassVar[ResourcePack] = ResourcePack(path="gm4_metallurgy") # load metallurgy textures so expansion shamirs can fall back on their
7372
vanilla_models_jar: ClassVar[ClientJar]
74-
vanilla_models_jar_1_21_3: ClassVar[ClientJar]
7573

7674
def create_models(self, config: ModelData, models_container: NamespaceProxy[Model]) -> list[Model]:
7775
logger = parent_logger.getChild(self.bound_ctx.project_id)
7876
models_loc = f"{config.reference}"
7977
models: dict[str, str] = {} # the value of config.models to be applied after going through special cases
8078
ret_list: list[Model] = []
81-
return ret_list # TODO 1.21.5: re-enable this
8279

8380
for item in config.item.entries():
8481
if item == "player_head":
@@ -172,7 +169,6 @@ def recursive_extract_variants(json: dict[str, Any]) -> tuple[list[str], list[An
172169

173170
if item_variants:
174171
self._item_def_map[item] = mutatable_itemdef_copy
175-
self._model_overrides_1_21_3[item] = variants
176172
models.update({item: "NULL"}) # actual model paths contained within itemdef compound
177173
elif item in SPECIAL_MODEL_IGNORES:
178174
# use the vanilla item-def anyway
@@ -229,10 +225,6 @@ def beet_default(ctx: Context):
229225
ShamirTemplate.vanilla_models_jar = vanilla.mount("assets/minecraft/items")
230226
merge_policy(ctx)
231227

232-
# 1.21.3 Backwards Compat
233-
vanilla.minecraft_version = '1.21.3'
234-
ShamirTemplate.vanilla_models_jar_1_21_3 = vanilla.mount("assets/minecraft/models/item")
235-
236228
def merge_policy(ctx: Context):
237229
ctx.assets.merge_policy.extend_namespace(OptifineProperties, optifine_armor_properties_merging)
238230
# a separate plugin to register the merge policy - used for the pyproject.toml custom policy workaround when using broadcast pipelines

0 commit comments

Comments
 (0)