2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/entity/projectile/EntityEnderSignal.java
|
|
|
|
+++ b/net/minecraft/world/entity/projectile/EntityEnderSignal.java
|
2023-06-07 17:30:00 +02:00
|
|
|
@@ -35,7 +35,7 @@
|
2020-08-28 04:35:14 +02:00
|
|
|
}
|
2020-08-26 10:20:19 +02:00
|
|
|
|
2020-09-10 23:00:00 +02:00
|
|
|
public void setItem(ItemStack itemstack) {
|
2021-11-21 23:00:00 +01:00
|
|
|
- if (!itemstack.is(Items.ENDER_EYE) || itemstack.hasTag()) {
|
|
|
|
+ if (true || !itemstack.is(Items.ENDER_EYE) || itemstack.hasTag()) { // CraftBukkit - always allow item changing
|
2023-06-07 17:30:00 +02:00
|
|
|
this.getEntityData().set(EntityEnderSignal.DATA_ITEM_STACK, itemstack.copyWithCount(1));
|
|
|
|
}
|
|
|
|
|
|
|
|
@@ -177,7 +177,7 @@
|
2021-11-21 23:00:00 +01:00
|
|
|
public void readAdditionalSaveData(NBTTagCompound nbttagcompound) {
|
|
|
|
ItemStack itemstack = ItemStack.of(nbttagcompound.getCompound("Item"));
|
2020-08-26 10:20:19 +02:00
|
|
|
|
2020-09-10 23:00:00 +02:00
|
|
|
- this.setItem(itemstack);
|
|
|
|
+ if (!itemstack.isEmpty()) this.setItem(itemstack); // CraftBukkit - SPIGOT-6103 summon, see also SPIGOT-5474
|
2020-08-26 10:20:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|