fix a kinda major core problem

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

View file

@ -86,18 +86,15 @@ public class CorePlugin extends PositionPlugin.PositionListener {
if (x > coreEnd.getX()) { if (x > coreEnd.getX()) {
x = coreStart.getX(); x = coreStart.getX();
bot.logger().log("x is more than limit (" + coreEnd.getX() + ") so adding z..");
z++; z++;
} }
if (z > coreEnd.getZ()) { if (z > coreEnd.getZ()) {
z = coreStart.getZ(); z = coreStart.getZ();
bot.logger().log("z is more than limit (" + coreEnd.getZ() + ") so adding y..");
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(); x = coreStart.getX();
y = coreStart.getY(); y = coreStart.getY();
z = coreStart.getZ(); z = coreStart.getZ();