Fix BlockStateProvider#horizontalBlock emitting rotations >=360

This commit is contained in:
tterrag committed 2019-11-01 17:10:06 -04:00
1 parent f2f7ab80f6
commit fab4ce894a
1 file changed
+1 -1
@@ -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()
);
}