diff --git a/build-number.txt b/build-number.txt index cdd3dcd9..b19e196a 100644 --- a/build-number.txt +++ b/build-number.txt @@ -1 +1 @@ -3027 \ No newline at end of file +3028 \ No newline at end of file diff --git a/src/main/java/me/chayapak1/chomens_bot/plugins/CorePlugin.java b/src/main/java/me/chayapak1/chomens_bot/plugins/CorePlugin.java index b99397c0..4afeb9b8 100644 --- a/src/main/java/me/chayapak1/chomens_bot/plugins/CorePlugin.java +++ b/src/main/java/me/chayapak1/chomens_bot/plugins/CorePlugin.java @@ -425,8 +425,6 @@ public class CorePlugin implements Listener { } private void incrementBlock (final int times) { - if (times > 256) return; - final int currentIndex = index.get(); final int x = from.getX() + (currentIndex & 15); @@ -437,7 +435,7 @@ public class CorePlugin implements Listener { index.set((currentIndex + 1) % (256 * Math.max(1, to.getY() - from.getY()))); - if (!isCommandBlockState(bot.world.getBlock(x, y, z))) { + if (times <= 256 && !isCommandBlockState(bot.world.getBlock(x, y, z))) { incrementBlock(times + 1); } }