quick fix : Minimum 'switch' branches

This commit is contained in:
Alexdoru committed 2023-01-25 23:03:02 +01:00
1 parent 06c95eeb39
commit ce3ee201a3
2 files changed
+6 -10

No files matched your search

@@ -25,9 +25,8 @@ public class FurnaceSlab extends InventorySlab {
@Override
public TileEntity createTileEntity(World world, int metadata) {
switch (metadata % 8) {
case 0:
return new FurnaceLogic();
if (metadata % 8 == 0) {
return new FurnaceLogic();
}
return null;
}
@@ -97,9 +96,8 @@ public class FurnaceSlab extends InventorySlab {
@Override
public TileEntity createNewTileEntity(World var1, int metadata) {
switch (metadata % 8) {
case 0:
return new FurnaceLogic();
if (metadata % 8 == 0) {
return new FurnaceLogic();
}
return null;
}