refactor: make the core increment at least a bit faster

i know i can use some bitwise operators or something smarter but i kinda just got lazy lol
This commit is contained in:
ChomeNS
2025-03-14 18:24:45 +07:00
parent a375818487
commit 65837f2afd
2 changed files with 9 additions and 15 deletions

View File

@@ -1 +1 @@
1782
1785

View File

@@ -361,26 +361,20 @@ public class CorePlugin extends PositionPlugin.Listener {
}
private void incrementBlock () {
int x = block.getX();
int x = block.getX() + 1;
int y = block.getY();
int z = block.getZ();
x++;
if (x > to.getX()) {
x = from.getX();
z++;
}
if (z > to.getZ()) {
z = from.getZ();
y++;
}
if (y > to.getY()) {
x = from.getX();
y = from.getY();
z = from.getZ();
if (z > to.getZ()) {
z = from.getZ();
y++;
if (y > to.getY()) {
y = from.getY();
}
}
}
block = Vector3i.from(x, y, z);