mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 11:59:14 +00:00
quick fix : Minimum 'switch' branches
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user