2019-12-18 03:07:14 +01:00
|
|
|
--- a/net/minecraft/server/ItemEnderEye.java
|
|
|
|
+++ b/net/minecraft/server/ItemEnderEye.java
|
|
|
|
@@ -61,7 +61,11 @@
|
|
|
|
|
2020-09-10 23:00:00 +02:00
|
|
|
entityendersignal.setItem(itemstack);
|
2019-12-18 03:07:14 +01:00
|
|
|
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);
|
|
|
|
}
|