NukerModule: Creative nuker mode now only allowed in creative

This commit is contained in:
noil 2020-12-28 18:40:03 -05:00
parent b735d7d9e5
commit b8b5e08bfc
1 changed files with 30 additions and 28 deletions

View File

@ -71,7 +71,8 @@ public final class NukerModule extends Module {
pos = this.getClosestBlock(false);
break;
case CREATIVE:
/* the amazing creative nuker straight from the latch hacked client */
if (mc.player.capabilities.isCreativeMode) {
/* the amazing creative 'nuker' straight from the latch hacked client */
for (double y = Math.round(mc.player.posY - 1) + this.vDistance.getValue(); y > Math.round(mc.player.posY - 1); y -= 1.0D) {
for (double x = mc.player.posX - this.hDistance.getValue(); x < mc.player.posX + this.hDistance.getValue(); x += 1.0D) {
for (double z = mc.player.posZ - this.hDistance.getValue(); z < mc.player.posZ + this.hDistance.getValue(); z += 1.0D) {
@ -108,6 +109,7 @@ public final class NukerModule extends Module {
}
}
}
}
break;
}