The `z` variable wasn't being reset properly
This commit is contained in:
samczsun 2017-01-19 22:12:30 -05:00
parent 66af3cc450
commit f83550157c

View File

@ -412,11 +412,11 @@ public class BuildData
return;
}
for (; x <= Math.max(CornerA.getBlockX(), CornerB.getBlockX()) ; x++)
for (int dx = x; dx <= Math.max(CornerA.getBlockX(), CornerB.getBlockX()) ; dx++)
{
for (; z <= Math.max(CornerA.getBlockZ(), CornerB.getBlockZ()) ; z++)
for (int dz = z; dz <= Math.max(CornerA.getBlockZ(), CornerB.getBlockZ()) ; dz++)
{
MapUtil.QuickChangeBlockAt(player.getWorld(), x, y, z, mat, data);
MapUtil.QuickChangeBlockAt(player.getWorld(), dx, y, dz, mat, data);
}
}
}