Detect all item updates
This commit is contained in:
@@ -890,6 +890,7 @@ public class Bot extends ServerPlayer implements Terminator {
|
||||
|
||||
@Override
|
||||
public void doTick() {
|
||||
detectEquipmentUpdatesPublic();
|
||||
baseTick();
|
||||
}
|
||||
|
||||
|
||||
@@ -260,6 +260,18 @@ public class Debugger {
|
||||
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) {
|
||||
Agent agent = TerminatorPlus.getInstance().getManager().getAgent();
|
||||
if (!(agent instanceof LegacyAgent)) {
|
||||
|
||||
Reference in New Issue
Block a user