From 77f53ebe37794616592112a5700f76862a61473f Mon Sep 17 00:00:00 2001 From: Asek3 Date: Wed, 6 Apr 2022 21:44:11 +0300 Subject: [PATCH] Fixed some Multipart Models --- .../sodium/mixin/features/model/MixinMultipartBakedModel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/jellysquid/mods/sodium/mixin/features/model/MixinMultipartBakedModel.java b/src/main/java/me/jellysquid/mods/sodium/mixin/features/model/MixinMultipartBakedModel.java index 1c9ebba6c..bf7a9d819 100644 --- a/src/main/java/me/jellysquid/mods/sodium/mixin/features/model/MixinMultipartBakedModel.java +++ b/src/main/java/me/jellysquid/mods/sodium/mixin/features/model/MixinMultipartBakedModel.java @@ -7,6 +7,7 @@ import net.minecraft.client.render.model.MultipartBakedModel; import net.minecraft.util.math.Direction; import net.minecraftforge.client.model.data.IModelData; +import net.minecraftforge.client.model.data.MultipartModelData; import org.apache.commons.lang3.tuple.Pair; import org.spongepowered.asm.mixin.Final; @@ -61,8 +62,7 @@ public List getQuads(BlockState state, Direction face, Random random, for (BakedModel model : models) { random.setSeed(seed); - - list.addAll(model.getQuads(state, face, random, modelData)); + list.addAll(model.getQuads(state, face, random, MultipartModelData.resolve(model, modelData))); } return list;