mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 17:04:24 +00:00
quick fix : Manual min/max calculation
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user