mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 12:02:36 +01:00
b3a8254758
By: md_5 <git@md-5.net>
22 lines
1.1 KiB
Diff
22 lines
1.1 KiB
Diff
--- a/net/minecraft/world/entity/projectile/EntityEnderSignal.java
|
|
+++ b/net/minecraft/world/entity/projectile/EntityEnderSignal.java
|
|
@@ -38,8 +38,8 @@
|
|
}
|
|
|
|
public void setItem(ItemStack itemstack) {
|
|
- if (!itemstack.a(Items.ENDER_EYE) || itemstack.hasTag()) {
|
|
- this.getDataWatcher().set(EntityEnderSignal.DATA_ITEM_STACK, (ItemStack) SystemUtils.a((Object) itemstack.cloneItemStack(), (itemstack1) -> {
|
|
+ if (true || !itemstack.a(Items.ENDER_EYE) || itemstack.hasTag()) { // CraftBukkit - always allow item changing
|
|
+ this.getDataWatcher().set(EntityEnderSignal.DATA_ITEM_STACK, (ItemStack) SystemUtils.a(itemstack.cloneItemStack(), (itemstack1) -> { // CraftBukkit - decompile error
|
|
itemstack1.setCount(1);
|
|
}));
|
|
}
|
|
@@ -182,7 +182,7 @@
|
|
public void loadData(NBTTagCompound nbttagcompound) {
|
|
ItemStack itemstack = ItemStack.a(nbttagcompound.getCompound("Item"));
|
|
|
|
- this.setItem(itemstack);
|
|
+ if (!itemstack.isEmpty()) this.setItem(itemstack); // CraftBukkit - SPIGOT-6103 summon, see also SPIGOT-5474
|
|
}
|
|
|
|
@Override
|