Reverted fix for issue where the player could be given stacks of 0 items as it causes other regressions
This commit is contained in:
@@ -221,7 +221,7 @@ public class Container {
|
|||||||
public boolean add(Item item, boolean fireListener, int preferredSlot) {
|
public boolean add(Item item, boolean fireListener, int preferredSlot) {
|
||||||
item = item.copy();
|
item = item.copy();
|
||||||
int maximum = getMaximumAdd(item);
|
int maximum = getMaximumAdd(item);
|
||||||
if (maximum == 0 || (item.getDefinition().isStackable() && item.getAmount() == 0)) {
|
if (maximum == 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (preferredSlot > -1 && items[preferredSlot] != null) {
|
if (preferredSlot > -1 && items[preferredSlot] != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user