fix a kinda major core problem

me used >= real
This commit is contained in:
ChomeNS 2023-03-24 16:28:56 +07:00
parent c7fdad965f
commit b040f07f8b

View file

@ -36,7 +36,7 @@ public class CorePlugin extends PositionPlugin.PositionListener {
public Vector3i relativeCorePosition = Vector3i.from(coreStart);
private boolean kaboom;
private final boolean kaboom;
public CorePlugin (Bot bot) {
this.bot = bot;
@ -84,17 +84,20 @@ public class CorePlugin extends PositionPlugin.PositionListener {
x++;
if (x >= coreEnd.getX()) {
if (x > coreEnd.getX()) {
x = coreStart.getX();
bot.logger().log("x is more than limit (" + coreEnd.getX() + ") so adding z..");
z++;
}
if (z >= coreEnd.getZ()) {
if (z > coreEnd.getZ()) {
z = coreStart.getZ();
bot.logger().log("z is more than limit (" + coreEnd.getZ() + ") so adding y..");
y++;
}
if (y >= coreEnd.getY()) {
if (y > coreEnd.getY()) {
bot.logger().log("y is more than limit (" + coreEnd.getY() + ") so resetting everything..");
x = coreStart.getX();
y = coreStart.getY();
z = coreStart.getZ();