Fix BlockStateProvider#horizontalBlock emitting rotations >=360
This commit is contained in:
parent
f2f7ab80f6
commit
fab4ce894a
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ public abstract class BlockStateProvider extends BlockModelProvider {
|
||||||
getVariantBuilder(block)
|
getVariantBuilder(block)
|
||||||
.forAllStates(state -> ConfiguredModel.builder()
|
.forAllStates(state -> ConfiguredModel.builder()
|
||||||
.modelFile(modelFunc.apply(state))
|
.modelFile(modelFunc.apply(state))
|
||||||
.rotationY((int) state.get(BlockStateProperties.HORIZONTAL_FACING).getHorizontalAngle() + angleOffset)
|
.rotationY(((int) state.get(BlockStateProperties.HORIZONTAL_FACING).getHorizontalAngle() + angleOffset) % 360)
|
||||||
.build()
|
.build()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue