mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 12:02:36 +01:00
8b26bb8f3e
By: md_5 <git@md-5.net>
20 lines
948 B
Diff
20 lines
948 B
Diff
--- a/net/minecraft/world/entity/projectile/EntityEnderSignal.java
|
|
+++ b/net/minecraft/world/entity/projectile/EntityEnderSignal.java
|
|
@@ -36,7 +36,7 @@
|
|
}
|
|
|
|
public void setItem(ItemStack itemstack) {
|
|
- if (!itemstack.is(Items.ENDER_EYE) || itemstack.hasTag()) {
|
|
+ if (true || !itemstack.is(Items.ENDER_EYE) || itemstack.hasTag()) { // CraftBukkit - always allow item changing
|
|
this.getEntityData().set(EntityEnderSignal.DATA_ITEM_STACK, (ItemStack) SystemUtils.make(itemstack.copy(), (itemstack1) -> {
|
|
itemstack1.setCount(1);
|
|
}));
|
|
@@ -180,7 +180,7 @@
|
|
public void readAdditionalSaveData(NBTTagCompound nbttagcompound) {
|
|
ItemStack itemstack = ItemStack.of(nbttagcompound.getCompound("Item"));
|
|
|
|
- this.setItem(itemstack);
|
|
+ if (!itemstack.isEmpty()) this.setItem(itemstack); // CraftBukkit - SPIGOT-6103 summon, see also SPIGOT-5474
|
|
}
|
|
|
|
@Override
|