quick fix : Manual min/max calculation

This commit is contained in:
Alexdoru authored and Jason Mitchell committed 2023-01-28 18:02:41 -08:00
1 parent 114fce2770
commit 173eab9a0e
4 files changed
+6 -10

No files matched your search

@@ -450,11 +450,7 @@ public class ArrowEntity extends EntityArrow implements IEntityAdditionalSpawnDa
return 0;
} else {
int l = stackSize;
if (stackSize > stack.getMaxStackSize() - stack.stackSize) {
l = stack.getMaxStackSize() - stack.stackSize;
}
int l = Math.min(stackSize, stack.getMaxStackSize() - stack.stackSize);
if (l > 64 - stack.stackSize) {
l = 64 - stack.stackSize;