mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-13 05:54:01 +01:00
fix one residual merge conflict.
creating matrix stacks is expensive, but correct.
This commit is contained in:
parent
24ab4e181f
commit
9b4d53d452
@ -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 New Issue
Block a user