Don't merge items with enchantments. Fixes BUKKIT-2050
Dieser Commit ist enthalten in:
Ursprung
8834d1423e
Commit
4942f5184a
@ -122,6 +122,10 @@ public class EntityItem extends Entity {
|
|||||||
return entityitem.a(this);
|
return entityitem.a(this);
|
||||||
} else if (entityitem.itemStack.count + this.itemStack.count > entityitem.itemStack.getMaxStackSize()) {
|
} else if (entityitem.itemStack.count + this.itemStack.count > entityitem.itemStack.getMaxStackSize()) {
|
||||||
return false;
|
return false;
|
||||||
|
// CraftBukkit start - don't merge items with enchantments
|
||||||
|
} else if (entityitem.itemStack.hasEnchantments() || this.itemStack.hasEnchantments()) {
|
||||||
|
return false;
|
||||||
|
// CraftBukkit end
|
||||||
} else {
|
} else {
|
||||||
entityitem.itemStack.count += this.itemStack.count;
|
entityitem.itemStack.count += this.itemStack.count;
|
||||||
entityitem.pickupDelay = Math.max(entityitem.pickupDelay, this.pickupDelay);
|
entityitem.pickupDelay = Math.max(entityitem.pickupDelay, this.pickupDelay);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren