quick fixes : enhanced for loop

This commit is contained in:
Alexdoru authored and Jason Mitchell committed 2023-01-28 18:02:41 -08:00
1 parent 59f3b5b72a
commit 83f54f1e97
33 files changed
+74 -96

No files matched your search

@@ -116,9 +116,9 @@ public class SurfaceOreGen extends WorldGenerator {
|| !world.getBlock(k2, l2, i3).isOpaqueCube())
world.setBlock(k2, l2, i3, this.minableBlock, minableBlockMeta, 2);
else {
for (int iter = 0; iter < replaceBlocks.length; iter++) {
for (Block replaceBlock : replaceBlocks) {
if (world.getBlock(k2, l2, i3)
.isReplaceableOreGen(world, k2, l2, i3, replaceBlocks[iter])) {
.isReplaceableOreGen(world, k2, l2, i3, replaceBlock)) {
world.setBlock(k2, l2, i3, this.minableBlock, minableBlockMeta, 2);
break;
}