From fab4ce894ab5d5aa90b954fa1e727ebe657fe50a Mon Sep 17 00:00:00 2001 From: tterrag Date: Fri, 1 Nov 2019 17:09:07 -0400 Subject: [PATCH] Fix BlockStateProvider#horizontalBlock emitting rotations >=360 --- .../client/model/generators/BlockStateProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraftforge/client/model/generators/BlockStateProvider.java b/src/main/java/net/minecraftforge/client/model/generators/BlockStateProvider.java index e1d28e9f6..4f2bbac5d 100644 --- a/src/main/java/net/minecraftforge/client/model/generators/BlockStateProvider.java +++ b/src/main/java/net/minecraftforge/client/model/generators/BlockStateProvider.java @@ -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() ); }