mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-29 08:27:03 +01:00
fix one residual merge conflict.
creating matrix stacks is expensive, but correct.
This commit is contained in:
parent
24ab4e181f
commit
9b4d53d452
2 changed files with 4 additions and 3 deletions
|
@ -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());
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue