quick fix : Duplicate branches in 'switch'

This commit is contained in:
Alexdoru authored and Jason Mitchell committed 2023-01-28 18:02:41 -08:00
1 parent f446ea280f
commit 114fce2770
12 files changed
+20 -58

No files matched your search

@@ -36,6 +36,7 @@ public class MultiBrick extends TConstructBlock {
int meta = world.getBlockMetadata(x, y, z);
switch (meta) {
case 0:
case 13:
return Blocks.obsidian.getBlockHardness(world, x, y, z);
case 1:
return Blocks.sandstone.getBlockHardness(world, x, y, z);
@@ -56,13 +57,10 @@ public class MultiBrick extends TConstructBlock {
case 9:
return 1.0F;
case 10:
return 1.5F;
case 11:
return 1.5F;
case 12:
return Blocks.end_stone.getBlockHardness(world, x, y, z);
case 13:
return Blocks.obsidian.getBlockHardness(world, x, y, z);
default:
return blockHardness;
}
@@ -74,6 +72,7 @@ public class MultiBrick extends TConstructBlock {
int meta = world.getBlockMetadata(x, y, z);
switch (meta) {
case 0:
case 13:
return Blocks.obsidian.getExplosionResistance(
entity, world, meta, meta, meta, explosionZ, explosionZ, explosionZ);
case 1:
@@ -103,15 +102,11 @@ public class MultiBrick extends TConstructBlock {
case 9:
return 1.0F;
case 10:
return 1.5F;
case 11:
return 1.5F;
case 12:
return Blocks.end_stone.getExplosionResistance(
entity, world, meta, meta, meta, explosionZ, explosionZ, explosionZ);
case 13:
return Blocks.obsidian.getExplosionResistance(
entity, world, meta, meta, meta, explosionZ, explosionZ, explosionZ);
default:
return getExplosionResistance(entity, world, meta, meta, meta, explosionZ, explosionZ, explosionZ);
}
@@ -39,6 +39,7 @@ public class MultiBrickFancy extends TConstructBlock {
int meta = world.getBlockMetadata(x, y, z);
switch (meta) {
case 0:
case 13:
return Blocks.obsidian.getBlockHardness(world, x, y, z);
case 1:
return Blocks.sandstone.getBlockHardness(world, x, y, z);
@@ -57,13 +58,10 @@ public class MultiBrickFancy extends TConstructBlock {
case 9:
return 1.0F;
case 10:
return 1.5F;
case 11:
return 1.5F;
case 12:
return Blocks.end_stone.getBlockHardness(world, x, y, z);
case 13:
return Blocks.obsidian.getBlockHardness(world, x, y, z);
case 3:
case 14:
case 15:
@@ -79,6 +77,7 @@ public class MultiBrickFancy extends TConstructBlock {
int meta = world.getBlockMetadata(x, y, z);
switch (meta) {
case 0:
case 13:
return Blocks.obsidian.getExplosionResistance(
entity, world, meta, meta, meta, explosionZ, explosionZ, explosionZ);
case 1:
@@ -105,15 +104,11 @@ public class MultiBrickFancy extends TConstructBlock {
case 9:
return 1.0F;
case 10:
return 1.5F;
case 11:
return 1.5F;
case 12:
return Blocks.end_stone.getExplosionResistance(
entity, world, meta, meta, meta, explosionZ, explosionZ, explosionZ);
case 13:
return Blocks.obsidian.getExplosionResistance(
entity, world, meta, meta, meta, explosionZ, explosionZ, explosionZ);
case 3:
case 14:
case 15:
@@ -139,30 +139,20 @@ public class ToolStationBlock extends InventoryBlock {
case 0:
return new ToolStationLogic();
case 1:
return new PartBuilderLogic();
case 2:
return new PartBuilderLogic();
case 3:
return new PartBuilderLogic();
case 2:
case 4:
return new PartBuilderLogic();
case 5:
return new PatternChestLogic();
case 9:
case 8:
case 7:
case 6:
return new PatternChestLogic();
case 7:
return new PatternChestLogic();
case 8:
return new PatternChestLogic();
case 9:
return new PatternChestLogic();
case 10:
return new StencilTableLogic();
case 11:
return new StencilTableLogic();
case 12:
return new StencilTableLogic();
case 13:
case 12:
case 11:
return new StencilTableLogic();
/*case 14:
return new CastingTableLogic();*/
@@ -119,14 +119,12 @@ public class BattlesignGui extends GuiScreen {
break;
case 28:
case 208:
moveLine(1);
break;
case 200:
moveLine(-1);
break;
case 208:
moveLine(1);
break;
}
}
}