mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-14 06:24:29 +01:00
fix mechanical crafter cogs
This commit is contained in:
parent
7aa175dd9c
commit
a5d6262424
@ -23,7 +23,7 @@ public class MechanicalCrafterInstance extends SingleRotatingInstance {
|
|||||||
InstancedTileRenderRegistry.instance.register(type, MechanicalCrafterInstance::new));
|
InstancedTileRenderRegistry.instance.register(type, MechanicalCrafterInstance::new));
|
||||||
}
|
}
|
||||||
|
|
||||||
public MechanicalCrafterInstance(InstancedTileRenderer modelManager, KineticTileEntity tile) {
|
public MechanicalCrafterInstance(InstancedTileRenderer<?> modelManager, KineticTileEntity tile) {
|
||||||
super(modelManager, tile);
|
super(modelManager, tile);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -33,12 +33,14 @@ public class MechanicalCrafterInstance extends SingleRotatingInstance {
|
|||||||
|
|
||||||
Supplier<MatrixStack> ms = () -> {
|
Supplier<MatrixStack> ms = () -> {
|
||||||
MatrixStack stack = new MatrixStack();
|
MatrixStack stack = new MatrixStack();
|
||||||
MatrixStacker.of(stack)
|
MatrixStacker stacker = MatrixStacker.of(stack).centre();
|
||||||
.centre()
|
|
||||||
.rotateZ(90)
|
if (facing.getAxis() == Direction.Axis.X)
|
||||||
.rotateY(AngleHelper.horizontalAngle(facing))
|
stacker.rotateZ(90);
|
||||||
.rotateX(AngleHelper.verticalAngle(facing))
|
else if (facing.getAxis() == Direction.Axis.Z)
|
||||||
.unCentre();
|
stacker.rotateX(90);
|
||||||
|
|
||||||
|
stacker.unCentre();
|
||||||
return stack;
|
return stack;
|
||||||
};
|
};
|
||||||
return rotatingMaterial().getModel(AllBlockPartials.SHAFTLESS_COGWHEEL, lastState, facing, ms);
|
return rotatingMaterial().getModel(AllBlockPartials.SHAFTLESS_COGWHEEL, lastState, facing, ms);
|
||||||
|
Loading…
Reference in New Issue
Block a user