Fixed crafting bug. Added Logger output.
This commit is contained in:
@@ -50,6 +50,8 @@ public class CraftingManager extends ContainerManager {
|
||||
// Drop
|
||||
if (isDropKeyDown()) {
|
||||
|
||||
Logger.info("acceptKey()", "Drop Key down.");
|
||||
|
||||
for (int i = 1; i < 10; i++) {
|
||||
moveStackToInventory(i);
|
||||
}
|
||||
@@ -57,7 +59,13 @@ public class CraftingManager extends ContainerManager {
|
||||
// Get from output
|
||||
} else if (isInteractionKeyDown()) {
|
||||
|
||||
if (Util.client.thePlayer.inventory.getItemStack() != null) {
|
||||
Logger.info("acceptKey()", "Interaction Key down.");
|
||||
|
||||
// Handles Interaction with items held
|
||||
if (Util.client.thePlayer.inventory.getItemStack() != null && (
|
||||
!Util.client.thePlayer.inventory.getItemStack().isItemEqual(getItemStack(0))
|
||||
|| Util.client.thePlayer.inventory.getItemStack().stackSize + getItemStack(0).stackSize
|
||||
>= getItemStack(0).getMaxStackSize())) {
|
||||
moveStackToInventory(-1);
|
||||
}
|
||||
|
||||
@@ -81,6 +89,8 @@ public class CraftingManager extends ContainerManager {
|
||||
} else if (slotIndex > 0 && currentHoveredSlot != null &&
|
||||
Util.client.thePlayer.inventory.getItemStack() == null) {
|
||||
|
||||
Logger.info("acceptKey()", "Key for index " + slotIndex + " down.");
|
||||
|
||||
if (isStackKeyDown()) {
|
||||
moveAll(currentHoveredSlot.slotNumber, slotIndex);
|
||||
moveStackToInventory(-1);
|
||||
|
||||
Reference in New Issue
Block a user