mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-16 18:45:09 +00:00
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:
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);
|
||||
|
||||
Reference in new issue
Block a user