fix a kinda major core problem
me used >= real
This commit is contained in:
parent
c7fdad965f
commit
b040f07f8b
1 changed files with 7 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue