diff options
Diffstat (limited to 'patch-remap/mache-spigotflower-stripped/net/minecraft/world/entity/projectile/EyeOfEnder.java.patch')
-rw-r--r-- | patch-remap/mache-spigotflower-stripped/net/minecraft/world/entity/projectile/EyeOfEnder.java.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/patch-remap/mache-spigotflower-stripped/net/minecraft/world/entity/projectile/EyeOfEnder.java.patch b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/entity/projectile/EyeOfEnder.java.patch new file mode 100644 index 0000000000..f10ba9607b --- /dev/null +++ b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/entity/projectile/EyeOfEnder.java.patch @@ -0,0 +1,24 @@ +--- a/net/minecraft/world/entity/projectile/EyeOfEnder.java ++++ b/net/minecraft/world/entity/projectile/EyeOfEnder.java +@@ -34,9 +34,9 @@ + this.setPos(d0, d1, d2); + } + +- public void setItem(ItemStack itemstack) { +- if (!itemstack.is(Items.ENDER_EYE) || itemstack.hasTag()) { +- this.getEntityData().set(EyeOfEnder.DATA_ITEM_STACK, itemstack.copyWithCount(1)); ++ public void setItem(ItemStack stack) { ++ if (true || !stack.is(Items.ENDER_EYE) || stack.hasTag()) { // CraftBukkit - always allow item changing ++ this.getEntityData().set(EyeOfEnder.DATA_ITEM_STACK, stack.copyWithCount(1)); + } + + } +@@ -184,7 +177,7 @@ + public void readAdditionalSaveData(CompoundTag compoundtag) { + ItemStack itemstack = ItemStack.of(compoundtag.getCompound("Item")); + +- this.setItem(itemstack); ++ if (!itemstack.isEmpty()) this.setItem(itemstack); // CraftBukkit - SPIGOT-6103 summon, see also SPIGOT-5474 + } + + @Override |