quick fix : 'if' statement with identical branches

This commit is contained in:
Alexdoru authored and Jason Mitchell committed 2023-01-28 18:02:41 -08:00
1 parent 04c7d32b53
commit fc54dde7ce
16 files changed
+39 -84

No files matched your search

@@ -78,7 +78,6 @@ public class MultiFluidTank extends LogicComponent implements IFluidTank {
if (fluidlist.size() == 0) {
fluidlist.add(liquid.copy());
currentLiquid += liquid.amount;
return true;
} else {
if (liquid.amount + currentLiquid > maxLiquid) return false;
@@ -99,8 +98,8 @@ public class MultiFluidTank extends LogicComponent implements IFluidTank {
if (first) fluidlist.add(0, liquid.copy());
else fluidlist.add(liquid.copy());
}
return true;
}
return true;
}
@Override
@@ -542,13 +542,11 @@ public class AbilityHelper {
(block1.stepSound.getVolume() + 1.0F) / 2.0F,
block1.stepSound.getPitch() * 0.8F);
if (world.isRemote) {
return true;
} else {
if (!world.isRemote) {
world.setBlock(x, y, z, block1);
damageTool(stack, 1, player, false);
return true;
}
return true;
} else {
return false;
}