mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-23 21:49:58 +00:00
Fix for magnet hotkey trying to toggle the wrong item
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user