quick fix : Manual min/max calculation

This commit is contained in:
Alexdoru committed 2023-01-25 23:44:30 +01:00
1 parent 106f238698
commit 8806f3540a
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;