mirror of
https://github.com/SimplexDevelopment/SimplexCore.git
synced 2024-12-22 16:47:37 +00:00
Cuboid.java Fix
This commit is contained in:
parent
4bf672d3ee
commit
7dbd8707bb
@ -34,16 +34,14 @@ public final class Cuboid {
|
|||||||
int b = t2 + y;
|
int b = t2 + y;
|
||||||
int c = t3 + z;
|
int c = t3 + z;
|
||||||
|
|
||||||
while (t1 < a) {
|
for (int currentX = t1; currentX < a; currentX++) {
|
||||||
while (t2 < b) {
|
for (int currentY = t2; currentY < b; currentY++) {
|
||||||
while (t3 < c) {
|
for (int currentZ = t3; currentZ < c; currentZ++) {
|
||||||
t3++;
|
location.getWorld().getBlockAt(currentX, currentY, currentZ).setType(material);
|
||||||
location.getWorld().getBlockAt(t1, t2, t3).setType(material);
|
|
||||||
}
|
}
|
||||||
t2++;
|
|
||||||
}
|
}
|
||||||
t1++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Constants.getScheduler().runTaskLaterAsynchronously(Constants.getPlugin(), task, Constants.getTimeValues().SECOND());
|
Constants.getScheduler().runTaskLaterAsynchronously(Constants.getPlugin(), task, Constants.getTimeValues().SECOND());
|
||||||
|
Loading…
Reference in New Issue
Block a user