Fixed 1.9 Player inventory bug. Added support for shields.

This commit is contained in:
0xSeb
2016-06-29 23:55:47 +02:00
parent c6a5387b70
commit efd4aa8eae
2 changed files with 7 additions and 0 deletions
@@ -159,6 +159,12 @@ public abstract class ContainerManager {
// hotbar-slots are always the last 9 slots of the currently opened inventory
int hotbarStartIndex = Util.client.thePlayer.openContainer.getInventory().size() - 9 - 1;
// NEW_1_9 Player inventory Shield fix
//if (Util.client.currentScreen instanceof GuiInventory) {
// hotbarStartIndex -= 1;
//}
int inputdelta;
KeyBinding[] hotbar = Util.client.gameSettings.keyBindsHotbar;
@@ -38,6 +38,7 @@ public class InventoryManager extends ContainerManager {
protected int specificKeyToSlotIndex() {
return mapKeyToSlot(-1, 1, 2, -1, 3, 4, -1, -1, -1);
// NEW_1_9 return mapKeyToSlot(-1, 1, 2, 45, 3, 4, 45, -1, -1);
}
@Override