Fix for magnet hotkey trying to toggle the wrong item

This commit is contained in:
HenryLoenwind committed 2016-01-06 13:39:37 +01:00
1 parent 88a5ee2411
commit 26ef112bb1
1 file changed
+1 -1
@@ -122,7 +122,7 @@ public class KeyTracker {
for (int i = 0; i < baubles.getSizeInventory(); i++) {
ItemStack stack = baubles.getStackInSlot(i);
if(stack != null && stack.getItem() != null && stack.getItem() == itemMagnet) {
boolean isActive = !ItemMagnet.isActive(inv[i]);
boolean isActive = !ItemMagnet.isActive(stack);
PacketHandler.INSTANCE.sendToServer(new PacketMagnetState(SlotType.BAUBLES, i, isActive));
return;
}