Revert nuker back to latest WITH fixes
This commit is contained in:
parent
52874e233d
commit
f97418d2f2
|
@ -26,7 +26,7 @@ import team.stiff.pomelo.impl.annotated.handler.annotation.Listener;
|
||||||
*/
|
*/
|
||||||
public final class NukerModule extends Module {
|
public final class NukerModule extends Module {
|
||||||
|
|
||||||
public final Value<Mode> mode = new Value<Mode>("Mode", new String[]{"Mode", "M"}, "The nuker mode to use", Mode.SELECTION);
|
public final Value<Mode> mode = new Value<Mode>("Mode", new String[]{"Mode", "M"}, "The nuker mode to use.", Mode.SELECTION);
|
||||||
|
|
||||||
private enum Mode {
|
private enum Mode {
|
||||||
SELECTION, ALL, CREATIVE
|
SELECTION, ALL, CREATIVE
|
||||||
|
@ -214,7 +214,7 @@ public final class NukerModule extends Module {
|
||||||
final double dist = mc.player.getDistance(pos.getX(), pos.getY(), pos.getZ());
|
final double dist = mc.player.getDistance(pos.getX(), pos.getY(), pos.getZ());
|
||||||
if (pos.equals(SpeedMineModule.autoPos)) {
|
if (pos.equals(SpeedMineModule.autoPos)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (dist <= maxDist && (mc.world.getBlockState(pos).getBlock() != Blocks.AIR && !(mc.world.getBlockState(pos).getBlock() instanceof BlockLiquid)) && canBreak(pos)) {
|
if (dist <= maxDist && (mc.world.getBlockState(pos).getBlock() != Blocks.AIR && !(mc.world.getBlockState(pos).getBlock() instanceof BlockLiquid)) && canBreak(pos)) {
|
||||||
if (selection) {
|
if (selection) {
|
||||||
if ((this.selected == null) || !mc.world.getBlockState(pos).getBlock().equals(this.selected)) {
|
if ((this.selected == null) || !mc.world.getBlockState(pos).getBlock().equals(this.selected)) {
|
||||||
|
|
Loading…
Reference in New Issue