mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-17 16:15:24 +01:00
SPIGOT-6103: Summoning an Eye of Ender throw an Error
This commit is contained in:
parent
9aafdc9a78
commit
0de8365ddf
20
nms-patches/EntityEnderSignal.patch
Normal file
20
nms-patches/EntityEnderSignal.patch
Normal file
@ -0,0 +1,20 @@
|
||||
--- a/net/minecraft/server/EntityEnderSignal.java
|
||||
+++ b/net/minecraft/server/EntityEnderSignal.java
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
public void b(ItemStack itemstack) {
|
||||
if (itemstack.getItem() != Items.ENDER_EYE || itemstack.hasTag()) {
|
||||
- this.getDataWatcher().set(EntityEnderSignal.b, SystemUtils.a((Object) itemstack.cloneItemStack(), (itemstack1) -> {
|
||||
+ this.getDataWatcher().set(EntityEnderSignal.b, SystemUtils.a(itemstack.cloneItemStack(), (itemstack1) -> { // CraftBukkit - decompile error
|
||||
itemstack1.setCount(1);
|
||||
}));
|
||||
}
|
||||
@@ -137,7 +137,7 @@
|
||||
public void loadData(NBTTagCompound nbttagcompound) {
|
||||
ItemStack itemstack = ItemStack.a(nbttagcompound.getCompound("Item"));
|
||||
|
||||
- this.b(itemstack);
|
||||
+ if (!itemstack.isEmpty()) this.b(itemstack); // CraftBukkit - SPIGOT-6103 summon, see also SPIGOT-5474
|
||||
}
|
||||
|
||||
@Override
|
Loading…
Reference in New Issue
Block a user