aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/og/net/minecraft/world/entity/projectile/EntityEnderSignal.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/og/net/minecraft/world/entity/projectile/EntityEnderSignal.patch')
-rw-r--r--patch-remap/og/net/minecraft/world/entity/projectile/EntityEnderSignal.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/patch-remap/og/net/minecraft/world/entity/projectile/EntityEnderSignal.patch b/patch-remap/og/net/minecraft/world/entity/projectile/EntityEnderSignal.patch
new file mode 100644
index 0000000000..63b12f9cc6
--- /dev/null
+++ b/patch-remap/og/net/minecraft/world/entity/projectile/EntityEnderSignal.patch
@@ -0,0 +1,20 @@
+--- a/net/minecraft/world/entity/projectile/EntityEnderSignal.java
++++ b/net/minecraft/world/entity/projectile/EntityEnderSignal.java
+@@ -35,7 +35,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.copyWithCount(1));
+ }
+
+@@ -177,7 +177,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