quick fix : Minimum 'switch' branches

This commit is contained in:
Alexdoru authored and Jason Mitchell committed 2023-01-28 18:02:41 -08:00
1 parent 350177b5c9
commit 28b094ea1a
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;
}