Minecraft Hacked Client Auto Totem Module
Hi, I am working on my client and I am trying to make Auto Totem module, but when I move the totem from inventory to offhand it will duplicate (client side)
So if anyone have an idea how to solve it please reply
Here is my current AutoTotem source code:
So if anyone have an idea how to solve it please reply

Here is my current AutoTotem source code:
Code:
public void onPre() {
for (int i = 0; i < mc.player.inventory.getSizeInventory(); i++) {
ItemStack item = mc.player.inventory.getStackInSlot(i);
ItemStack itemOffhand = mc.player.getHeldItemOffhand();
if (item.getTranslationKey().equalsIgnoreCase("item.totem") && !itemOffhand.getTranslationKey().equalsIgnoreCase("item.totem")) {
mc.player.setItemStackToSlot(EntityEquipmentSlot.OFFHAND, item); //This is the part where I need your help.
}
}
}