Detect all item updates

This commit is contained in:
ThisTestUser
2024-09-21 21:24:41 -04:00
parent a6adcd0926
commit 56b9416d0c
2 changed files with 13 additions and 0 deletions

View File

@@ -890,6 +890,7 @@ public class Bot extends ServerPlayer implements Terminator {
@Override @Override
public void doTick() { public void doTick() {
detectEquipmentUpdatesPublic();
baseTick(); baseTick();
} }

View File

@@ -260,6 +260,18 @@ public class Debugger {
TerminatorPlus.getInstance().getManager().fetch().forEach(bot -> bot.setShield(true)); TerminatorPlus.getInstance().getManager().fetch().forEach(bot -> bot.setShield(true));
} }
public void totem() {
TerminatorPlus.getInstance().getManager().fetch().forEach(bot -> bot.setItemOffhand(new ItemStack(Material.TOTEM_OF_UNDYING)));
}
public void clearMainHand() {
TerminatorPlus.getInstance().getManager().fetch().forEach(bot -> bot.setItem(new ItemStack(Material.AIR)));
}
public void clearOffHand() {
TerminatorPlus.getInstance().getManager().fetch().forEach(bot -> bot.setItemOffhand(new ItemStack(Material.AIR)));
}
public void offsets(boolean b) { public void offsets(boolean b) {
Agent agent = TerminatorPlus.getInstance().getManager().getAgent(); Agent agent = TerminatorPlus.getInstance().getManager().getAgent();
if (!(agent instanceof LegacyAgent)) { if (!(agent instanceof LegacyAgent)) {