fix one residual merge conflict.

creating matrix stacks is expensive, but correct.
This commit is contained in:
JozsefA 2021-02-17 14:27:49 -08:00
parent 24ab4e181f
commit 9b4d53d452
2 changed files with 4 additions and 3 deletions

View file

@ -799,7 +799,7 @@ public abstract class Contraption {
Block block = info.state.getBlock();
CompoundNBT tag = info.nbt;
MovementBehaviour movementBehaviour = AllMovementBehaviours.of(block);
if (tag == null || (movementBehaviour != null && movementBehaviour.hasSpecialMovementRenderer()))
if (tag == null)
return;
tag.putInt("x", info.pos.getX());

View file

@ -25,7 +25,7 @@ public class SuperByteBuffer extends TemplateBuffer {
}
// Vertex Position
private final MatrixStack transforms;
private MatrixStack transforms;
// Vertex Texture Coords
private SpriteShiftFunc spriteShiftFunc;
@ -152,7 +152,8 @@ public class SuperByteBuffer extends TemplateBuffer {
.endVertex();
}
while (!transforms.isEmpty()) transforms.pop();
transforms = new MatrixStack();
spriteShiftFunc = null;
shouldColor = false;
shouldLight = false;