mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 20:52:26 +00:00
quick fixes : enhanced for loop
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user