Warnings cleanup

This commit is contained in:
paulevsGitch 2021-05-26 14:42:51 +03:00
parent ab4c614eac
commit 27e077ddd0
8 changed files with 26 additions and 29 deletions

View file

@ -64,13 +64,15 @@ public abstract class EndButtonBlock extends ButtonBlock implements BlockModelPr
int x = 0, y = 0;
switch (face) {
case CEILING: x = 180; break;
case WALL: x = 90; break;
case WALL:
default: x = 90; break;
}
switch (blockState.getValue(FACING)) {
case NORTH: if (isCeiling) { y = 180; } break;
case EAST: y = isCeiling ? 270 : 90; break;
case SOUTH: if(!isCeiling) { y = 180; } break;
case WEST: y = isCeiling ? 90 : 270; break;
case WEST:
default: y = isCeiling ? 90 : 270; break;
}
BlockModelRotation rotation = BlockModelRotation.by(x, y);
return ModelsHelper.createMultiVariant(modelId, rotation.getRotation(), face == AttachFace.WALL);