2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/entity/projectile/EntityEnderSignal.java
|
|
|
|
+++ b/net/minecraft/world/entity/projectile/EntityEnderSignal.java
|
2022-12-07 17:00:00 +01:00
|
|
|
@@ -36,7 +36,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
|
|
|
|
this.getEntityData().set(EntityEnderSignal.DATA_ITEM_STACK, (ItemStack) SystemUtils.make(itemstack.copy(), (itemstack1) -> {
|
2020-08-26 10:20:19 +02:00
|
|
|
itemstack1.setCount(1);
|
|
|
|
}));
|
2022-12-07 17:00:00 +01:00
|
|
|
@@ -180,7 +180,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
|