Removed unnecessary (int)

This commit is contained in:
Tastybento 2018-02-10 14:06:20 -08:00
parent a9ea8e830d
commit 11c1ffc790

View File

@ -34,10 +34,10 @@ public class DeleteIslandChunks {
if (world == null) {
return;
}
int minXChunk = (int) (island.getMinX() / 16);
int maxXChunk = (int) ((island.getRange() * 2 + island.getMinX() - 1) /16);
int minZChunk = (int) (island.getMinZ() / 16);
int maxZChunk = (int) ((island.getRange() * 2 + island.getMinZ() - 1) /16);
int minXChunk = island.getMinX() / 16;
int maxXChunk = (island.getRange() * 2 + island.getMinX() - 1) /16;
int minZChunk = island.getMinZ() / 16;
int maxZChunk = (island.getRange() * 2 + island.getMinZ() - 1) /16;
for (int x = minXChunk; x <= maxXChunk; x++) {
for (int z = minZChunk; z<=maxZChunk; z++) {
world.regenerateChunk(x, z);