forked from RepoMirrors/kami-blue
Merge remote-tracking branch 'origin/feature/master' into feature/master
This commit is contained in:
commit
8c1f2eb8b7
|
@ -83,7 +83,7 @@ public class AutoTrap extends Module {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onEnable() {
|
protected void onEnable() {
|
||||||
if (mc.player == null) return;
|
if (mc.player == null || mc.player.getHealth() <= 0) return;
|
||||||
|
|
||||||
firstRun = true;
|
firstRun = true;
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ public class AutoTrap extends Module {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onDisable() {
|
protected void onDisable() {
|
||||||
if (mc.player == null) return;
|
if (mc.player == null || mc.player.getHealth() <= 0) return;
|
||||||
|
|
||||||
if (lastHotbarSlot != playerHotbarSlot && playerHotbarSlot != -1) {
|
if (lastHotbarSlot != playerHotbarSlot && playerHotbarSlot != -1) {
|
||||||
mc.player.inventory.currentItem = playerHotbarSlot;
|
mc.player.inventory.currentItem = playerHotbarSlot;
|
||||||
|
@ -114,7 +114,7 @@ public class AutoTrap extends Module {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onUpdate() {
|
public void onUpdate() {
|
||||||
if (mc.player == null) return;
|
if (mc.player == null || mc.player.getHealth() <= 0) return;
|
||||||
|
|
||||||
if (!activeInFreecam.getValue() && ModuleManager.isModuleEnabled("Freecam")) return;
|
if (!activeInFreecam.getValue() && ModuleManager.isModuleEnabled("Freecam")) return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue