mirror of
https://github.com/neoforged/NeoForge
synced 2026-08-20 08:23:13 -04:00
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>
24 lines
1.3 KiB
Diff
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() {
|