Fix #5, disable AutoTNT for now

This commit is contained in:
Cloudburst
2021-06-02 21:47:33 +02:00
parent 1f6c9d6aa6
commit 33169c1681
3 changed files with 83 additions and 76 deletions

View File

@@ -83,10 +83,11 @@ public class AutoTNT extends Module {
if (ticks <= 0) {
// Clear and get tnt blocks
blocks.clear();
for (BlockPos blockPos : BlockUtils.getSphere(mc.player.getBlockPos(), range.get(), range.get())) {
bp.set(blockPos);
if (mc.world.getBlockState(blockPos).getBlock() instanceof TntBlock) blocks.add(bp);
}
// TODO: Fix
// for (BlockPos blockPos : BlockUtils.getSphere(mc.player.getBlockPos(), range.get(), range.get())) {
// bp.set(blockPos);
// if (mc.world.getBlockState(blockPos).getBlock() instanceof TntBlock) blocks.add(bp);
// }
// Make sure there are TNTs around us
if (blocks.size() <= 0) {
@@ -144,4 +145,5 @@ public class AutoTNT extends Module {
private void setBpToVec3d(Vec3d pos) {
bp.set(pos.getX(), pos.getY(), pos.getZ());
}
}