Skip to content

Commit

Permalink
Fixed some Multipart Models
Browse files Browse the repository at this point in the history
  • Loading branch information
Asek3 committed Apr 6, 2022
1 parent 3af0b00 commit 77f53eb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -61,8 +62,7 @@ public List<BakedQuad> 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;
Expand Down

0 comments on commit 77f53eb

Please sign in to comment.