mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 17:04:24 +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
@@ -19,10 +19,8 @@ public class Knapsack extends CraftingItem implements IAccessory {
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean par4) {
|
||||
switch (stack.getItemDamage()) {
|
||||
case 0:
|
||||
list.add(StatCollector.translateToLocal("knapsack.tooltip"));
|
||||
break;
|
||||
if (stack.getItemDamage() == 0) {
|
||||
list.add(StatCollector.translateToLocal("knapsack.tooltip"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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