Fixed 1.9 Player inventory bug. Added support for shields.
This commit is contained in:
@@ -159,6 +159,12 @@ public abstract class ContainerManager {
|
|||||||
|
|
||||||
// hotbar-slots are always the last 9 slots of the currently opened inventory
|
// hotbar-slots are always the last 9 slots of the currently opened inventory
|
||||||
int hotbarStartIndex = Util.client.thePlayer.openContainer.getInventory().size() - 9 - 1;
|
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;
|
int inputdelta;
|
||||||
KeyBinding[] hotbar = Util.client.gameSettings.keyBindsHotbar;
|
KeyBinding[] hotbar = Util.client.gameSettings.keyBindsHotbar;
|
||||||
|
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ public class InventoryManager extends ContainerManager {
|
|||||||
protected int specificKeyToSlotIndex() {
|
protected int specificKeyToSlotIndex() {
|
||||||
|
|
||||||
return mapKeyToSlot(-1, 1, 2, -1, 3, 4, -1, -1, -1);
|
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
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user