aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/mache-vineflower-stripped/net/minecraft/world/entity/projectile/EyeOfEnder.java.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/mache-vineflower-stripped/net/minecraft/world/entity/projectile/EyeOfEnder.java.patch')
-rw-r--r--patch-remap/mache-vineflower-stripped/net/minecraft/world/entity/projectile/EyeOfEnder.java.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/patch-remap/mache-vineflower-stripped/net/minecraft/world/entity/projectile/EyeOfEnder.java.patch b/patch-remap/mache-vineflower-stripped/net/minecraft/world/entity/projectile/EyeOfEnder.java.patch
new file mode 100644
index 0000000000..b3e85b40a3
--- /dev/null
+++ b/patch-remap/mache-vineflower-stripped/net/minecraft/world/entity/projectile/EyeOfEnder.java.patch
@@ -0,0 +1,25 @@
+--- a/net/minecraft/world/entity/projectile/EyeOfEnder.java
++++ b/net/minecraft/world/entity/projectile/EyeOfEnder.java
+@@ -34,8 +35,8 @@
+ }
+
+ public void setItem(ItemStack stack) {
+- if (!stack.is(Items.ENDER_EYE) || stack.hasTag()) {
+- this.getEntityData().set(DATA_ITEM_STACK, stack.copyWithCount(1));
++ if (true || !stack.is(Items.ENDER_EYE) || stack.hasTag()) { // CraftBukkit - always allow item changing
++ this.getEntityData().set(EyeOfEnder.DATA_ITEM_STACK, stack.copyWithCount(1));
+ }
+ }
+
+@@ -179,8 +175,9 @@
+
+ @Override
+ public void readAdditionalSaveData(CompoundTag compound) {
+- ItemStack itemStack = ItemStack.of(compound.getCompound("Item"));
+- this.setItem(itemStack);
++ ItemStack itemstack = ItemStack.of(compound.getCompound("Item"));
++
++ if (!itemstack.isEmpty()) this.setItem(itemstack); // CraftBukkit - SPIGOT-6103 summon, see also SPIGOT-5474
+ }
+
+ @Override