Skip to content

Commit

Permalink
Ran spotlessApply to format code
Browse files Browse the repository at this point in the history
  • Loading branch information
PiTheGuy committed Aug 13, 2024
1 parent 07fad0d commit a5f78f2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/main/java/appeng/menu/slot/CraftingTermSlot.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,16 @@ public void doClick(InventoryAction action, Player who) {

int maxTimesToCraft;
InternalInventory target;
if (action == InventoryAction.CRAFT_SHIFT || action == InventoryAction.CRAFT_ALL) // craft into player inventory...
if (action == InventoryAction.CRAFT_SHIFT || action == InventoryAction.CRAFT_ALL) // craft into player
// inventory...
{
target = new PlayerInternalInventory(who.getInventory());
if (action == InventoryAction.CRAFT_SHIFT) {
maxTimesToCraft = (int) Math.floor((double) this.getItem().getMaxStackSize() / (double) howManyPerCraft);
maxTimesToCraft = (int) Math
.floor((double) this.getItem().getMaxStackSize() / (double) howManyPerCraft);
} else {
maxTimesToCraft = (int) Math.floor((double) this.getItem().getMaxStackSize() / (double) howManyPerCraft * Inventory.INVENTORY_SIZE);
maxTimesToCraft = (int) Math.floor((double) this.getItem().getMaxStackSize() / (double) howManyPerCraft
* Inventory.INVENTORY_SIZE);
}
} else if (action == InventoryAction.CRAFT_STACK) // craft into hand, full stack
{
Expand Down

0 comments on commit a5f78f2

Please sign in to comment.