32 lines
1.3 KiB
Diff
32 lines
1.3 KiB
Diff
From d69b3ad28f5941dfdfa8a31213ffe41c0cd7bacd Mon Sep 17 00:00:00 2001
|
|
From: prplz <tmtgr@hotmail.com>
|
|
Date: Tue, 27 May 2014 17:39:41 +1000
|
|
Subject: [PATCH] Fix Max Stack Size Tracking
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/Container.java b/src/main/java/net/minecraft/server/Container.java
|
|
index 7358645..12e48d4 100644
|
|
--- a/src/main/java/net/minecraft/server/Container.java
|
|
+++ b/src/main/java/net/minecraft/server/Container.java
|
|
@@ -504,7 +504,7 @@ public abstract class Container {
|
|
itemstack.count -= maxStack - itemstack1.count;
|
|
itemstack1.count = maxStack;
|
|
slot.f();
|
|
- flag1 = itemstack.count == 0; // Don't give a success return if we have leftovers
|
|
+ flag1 = true; // Don't give a success return if we have leftovers
|
|
}
|
|
// CraftBukkit end
|
|
}
|
|
@@ -532,7 +532,7 @@ public abstract class Container {
|
|
slot.f();
|
|
// CraftBukkit start - Don't assume entire stack went in
|
|
itemstack.count -= slot.getItem().count;
|
|
- flag1 = itemstack.count == 0;
|
|
+ flag1 = true;
|
|
// CraftBukkit end
|
|
break;
|
|
}
|
|
--
|
|
1.9.1
|
|
|