Commits

md_5 authored 0de8365ddfb
SPIGOT-6103: Summoning an Eye of Ender throw an Error
No tags

nms-patches/EntityEnderSignal.patch

Added
1 +--- a/net/minecraft/server/EntityEnderSignal.java
2 ++++ b/net/minecraft/server/EntityEnderSignal.java
3 +@@ -21,7 +21,7 @@
4 +
5 + public void b(ItemStack itemstack) {
6 + if (itemstack.getItem() != Items.ENDER_EYE || itemstack.hasTag()) {
7 +- this.getDataWatcher().set(EntityEnderSignal.b, SystemUtils.a((Object) itemstack.cloneItemStack(), (itemstack1) -> {
8 ++ this.getDataWatcher().set(EntityEnderSignal.b, SystemUtils.a(itemstack.cloneItemStack(), (itemstack1) -> { // CraftBukkit - decompile error
9 + itemstack1.setCount(1);
10 + }));
11 + }
12 +@@ -137,7 +137,7 @@
13 + public void loadData(NBTTagCompound nbttagcompound) {
14 + ItemStack itemstack = ItemStack.a(nbttagcompound.getCompound("Item"));
15 +
16 +- this.b(itemstack);
17 ++ if (!itemstack.isEmpty()) this.b(itemstack); // CraftBukkit - SPIGOT-6103 summon, see also SPIGOT-5474
18 + }
19 +
20 + @Override

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut