mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 18:27:41 +01:00
b3a8254758
By: md_5 <git@md-5.net>
16 lines
753 B
Diff
16 lines
753 B
Diff
--- a/net/minecraft/world/item/ItemEnderEye.java
|
|
+++ b/net/minecraft/world/item/ItemEnderEye.java
|
|
@@ -85,7 +85,11 @@
|
|
|
|
entityendersignal.setItem(itemstack);
|
|
entityendersignal.a(blockposition);
|
|
- world.addEntity(entityendersignal);
|
|
+ // CraftBukkit start
|
|
+ if (!world.addEntity(entityendersignal)) {
|
|
+ return new InteractionResultWrapper(EnumInteractionResult.FAIL, itemstack);
|
|
+ }
|
|
+ // CraftBukkit end
|
|
if (entityhuman instanceof EntityPlayer) {
|
|
CriterionTriggers.USED_ENDER_EYE.a((EntityPlayer) entityhuman, blockposition);
|
|
}
|