mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 00:07:45 +00:00
Fix BlockStateProvider#horizontalBlock emitting rotations >=360
This commit is contained in:
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()
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user