Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
commented out code in ContainerWorkbench
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Mar 29, 2024
1 parent bfa3e72 commit 4b76419
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ protected void addSlots(BlockEntityMachine<?> tile) {
@Override
public void clicked(int slotId, int dragType, ClickType clickTypeIn, Player player) {

boolean clickTypeCrafting = slotId == 0 && slots.get(slotId).hasItem() &&
/*boolean clickTypeCrafting = slotId == 0 && slots.get(slotId).hasItem() &&
(clickTypeIn.equals(ClickType.PICKUP) || clickTypeIn.equals(ClickType.QUICK_MOVE));
//Save the Matrix State before Crafting
Expand All @@ -75,12 +75,12 @@ public void clicked(int slotId, int dragType, ClickType clickTypeIn, Player play
ItemStack matrixStack = matrixSlot.getItem();
beforeAction.set(i - 17, matrixStack.copy());
}
}
}*/

super.clicked(slotId, dragType, clickTypeIn, player);

//Try to pull from the Project Table Inventory if the last of an item for a recipe.
if(clickTypeCrafting){
/*if(clickTypeCrafting){
for (int i = 17; i < 26; ++i) {
ItemStack beforeStack = beforeAction.get(i - 17);
Slot matrixSlot = slots.get(i);
Expand All @@ -100,7 +100,7 @@ public void clicked(int slotId, int dragType, ClickType clickTypeIn, Player play
}
}
}
}
}*/
}

protected static void updateCrafting(int id, int stateID, Level world, Player playerEntity, CraftingContainer craftingInventory, ResultContainer craftResultInventory) {
Expand Down

0 comments on commit 4b76419

Please sign in to comment.