mc-neoforge/patches/net/minecraft/client/model/geom/ModelLayers.java.patch
Technici4n 9f6edae189 Port to 1.21.5-rc1
Co-authored-by: Apex <robsonlawson3@gmail.com>
Co-authored-by: coehlrich <coehlrich@users.noreply.github.com>
Co-authored-by: embeddedt <42941056+embeddedt@users.noreply.github.com>
Co-authored-by: Matyrobbrt <matyrobbrt@gmail.com>
Co-authored-by: Minecraftschurli <minecraftschurli@gmail.com>
Co-authored-by: Sara Freimer <sara@freimer.com>
Co-authored-by: Sebastian Hartte <shartte@users.noreply.github.com>
Co-authored-by: Technici4n <13494793+Technici4n@users.noreply.github.com>
Co-authored-by: XFactHD <xfacthd@gmx.de>
2025-03-21 23:48:33 +01:00

24 lines
1.3 KiB
Diff

--- a/net/minecraft/client/model/geom/ModelLayers.java
+++ b/net/minecraft/client/model/geom/ModelLayers.java
@@ -330,15 +_,18 @@
}
public static ModelLayerLocation createStandingSignModelName(WoodType p_171292_) {
- return createLocation("sign/standing/" + p_171292_.name(), "main");
+ ResourceLocation location = ResourceLocation.parse(p_171292_.name());
+ return new ModelLayerLocation(location.withPrefix("sign/standing/"), "main");
}
public static ModelLayerLocation createWallSignModelName(WoodType p_360963_) {
- return createLocation("sign/wall/" + p_360963_.name(), "main");
+ ResourceLocation location = ResourceLocation.parse(p_360963_.name());
+ return new ModelLayerLocation(location.withPrefix("sign/wall/"), "main");
}
public static ModelLayerLocation createHangingSignModelName(WoodType p_252225_, HangingSignRenderer.AttachmentType p_382987_) {
- return createLocation("hanging_sign/" + p_252225_.name() + "/" + p_382987_.getSerializedName(), "main");
+ ResourceLocation location = ResourceLocation.parse(p_252225_.name());
+ return new ModelLayerLocation(location.withPrefix("hanging_sign/").withSuffix("/" + p_382987_.getSerializedName()), "main");
}
public static Stream<ModelLayerLocation> getKnownLocations() {