quick fix : 'if' statement with identical branches

This commit is contained in:
Alexdoru committed 2023-01-25 22:53:06 +01:00
1 parent 5a1c3a4dfd
commit 6a88c6a5e1
16 files changed
+39 -84

No files matched your search

@@ -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;
}