Fix BlockStateProvider#horizontalBlock emitting rotations >=360

This commit is contained in:
tterrag 2019-11-01 17:09:07 -04:00
parent f2f7ab80f6
commit fab4ce894a

View file

@ -201,7 +201,7 @@ public abstract class BlockStateProvider extends BlockModelProvider {
getVariantBuilder(block)
.forAllStates(state -> ConfiguredModel.builder()
.modelFile(modelFunc.apply(state))
.rotationY((int) state.get(BlockStateProperties.HORIZONTAL_FACING).getHorizontalAngle() + angleOffset)
.rotationY(((int) state.get(BlockStateProperties.HORIZONTAL_FACING).getHorizontalAngle() + angleOffset) % 360)
.build()
);
}