1.21 Update

Co-authored-by: RealMangoRage <[email protected]>
Co-authored-by: Daniel Norris <[email protected]>
Co-authored-by: Ven <[email protected]>
This commit is contained in:
committed 2024-06-13 10:42:32 -07:00
1 parent 3d9e12a71d
commit 4a2db246e0
941 files changed
+3119 -4266

No files matched your search

@@ -58,7 +58,10 @@ public class DispenseFluidContainer extends DefaultDispenseItemBehavior {
if (stack.getCount() == 1)
return resultStack;
else if (((DispenserBlockEntity)source.blockEntity()).addItem(resultStack) < 0)
source.blockEntity().insertItem(resultStack);
if (!resultStack.isEmpty())
this.dispenseBehavior.dispense(source, resultStack);
ItemStack stackCopy = stack.copy();
@@ -87,8 +90,11 @@ public class DispenseFluidContainer extends DefaultDispenseItemBehavior {
if (drainedStack.getCount() == 1)
return drainedStack;
else if (!drainedStack.isEmpty() && ((DispenserBlockEntity)source.blockEntity()).addItem(drainedStack) < 0)
if (!drainedStack.isEmpty()) {
source.blockEntity().insertItem(drainedStack);
this.dispenseBehavior.dispense(source, drainedStack);
}
ItemStack stackCopy = drainedStack.copy();
stackCopy.shrink(1);