diff --git a/build.gradle b/build.gradle index f7c24f1..e0d5944 100644 --- a/build.gradle +++ b/build.gradle @@ -92,7 +92,7 @@ repositories { dependencies { minecraft 'net.minecraftforge:forge:1.18.2-40.1.18' - implementation fg.deobf (project.dependencies.create('com.hrznstudio:titanium:1.18.2-3.5.0-32')) + implementation fg.deobf (project.dependencies.create('com.hrznstudio:titanium:1.18.2-3.5.6-38')) compileOnly fg.deobf("mezz.jei:jei-1.18.2:9.7.0.180:api") runtimeOnly fg.deobf("mezz.jei:jei-1.18.2:9.7.0.180") runtimeOnly fg.deobf("curse.maven:refined-storage-243076:3712882") diff --git a/src/main/java/com/buuz135/functionalstorage/inventory/BigInventoryHandler.java b/src/main/java/com/buuz135/functionalstorage/inventory/BigInventoryHandler.java index e017f4f..0654674 100644 --- a/src/main/java/com/buuz135/functionalstorage/inventory/BigInventoryHandler.java +++ b/src/main/java/com/buuz135/functionalstorage/inventory/BigInventoryHandler.java @@ -49,7 +49,7 @@ public abstract class BigInventoryHandler implements IItemHandler, INBTSerializa BigStack bigStack = this.storedStacks.get(slot); int inserted = Math.min(getSlotLimit(slot) - bigStack.getAmount(), stack.getCount()); if (!simulate){ - if (bigStack.getStack().isEmpty()) bigStack.setStack(ItemHandlerHelper.copyStackWithSize(stack, 64)); + if (bigStack.getStack().isEmpty()) bigStack.setStack(ItemHandlerHelper.copyStackWithSize(stack, stack.getMaxStackSize())); bigStack.setAmount(Math.min(bigStack.getAmount() + inserted, getSlotLimit(slot))); onChange(); }