mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 07:48:53 +01:00
15 lines
732 B
Diff
15 lines
732 B
Diff
--- a/net/minecraft/server/ItemEnderEye.java
|
|
+++ b/net/minecraft/server/ItemEnderEye.java
|
|
@@ -61,7 +61,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.m.a((EntityPlayer) entityhuman, blockposition);
|
|
}
|