aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/og/net/minecraft/world/item/ItemEnderEye.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/og/net/minecraft/world/item/ItemEnderEye.patch')
-rw-r--r--patch-remap/og/net/minecraft/world/item/ItemEnderEye.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/patch-remap/og/net/minecraft/world/item/ItemEnderEye.patch b/patch-remap/og/net/minecraft/world/item/ItemEnderEye.patch
new file mode 100644
index 0000000000..e573b447a5
--- /dev/null
+++ b/patch-remap/og/net/minecraft/world/item/ItemEnderEye.patch
@@ -0,0 +1,15 @@
+--- a/net/minecraft/world/item/ItemEnderEye.java
++++ b/net/minecraft/world/item/ItemEnderEye.java
+@@ -89,7 +89,11 @@
+ entityendersignal.setItem(itemstack);
+ entityendersignal.signalTo(blockposition);
+ world.gameEvent(GameEvent.PROJECTILE_SHOOT, entityendersignal.position(), GameEvent.a.of((Entity) entityhuman));
+- world.addFreshEntity(entityendersignal);
++ // CraftBukkit start
++ if (!world.addFreshEntity(entityendersignal)) {
++ return new InteractionResultWrapper(EnumInteractionResult.FAIL, itemstack);
++ }
++ // CraftBukkit end
+ if (entityhuman instanceof EntityPlayer) {
+ CriterionTriggers.USED_ENDER_EYE.trigger((EntityPlayer) entityhuman, blockposition);
+ }