2021-03-16 09:00:00 +11:00
|
|
|
--- a/net/minecraft/world/item/ItemEnderEye.java
|
|
|
|
+++ b/net/minecraft/world/item/ItemEnderEye.java
|
2022-06-08 02:00:00 +10:00
|
|
|
@@ -89,7 +89,11 @@
|
2020-09-11 07:00:00 +10:00
|
|
|
entityendersignal.setItem(itemstack);
|
2021-11-22 09:00:00 +11:00
|
|
|
entityendersignal.signalTo(blockposition);
|
2022-06-08 02:00:00 +10:00
|
|
|
world.gameEvent(GameEvent.PROJECTILE_SHOOT, entityendersignal.position(), GameEvent.a.of((Entity) entityhuman));
|
2021-11-22 09:00:00 +11:00
|
|
|
- world.addFreshEntity(entityendersignal);
|
2019-12-18 13:07:14 +11:00
|
|
|
+ // CraftBukkit start
|
2021-11-22 09:00:00 +11:00
|
|
|
+ if (!world.addFreshEntity(entityendersignal)) {
|
2019-12-18 13:07:14 +11:00
|
|
|
+ return new InteractionResultWrapper(EnumInteractionResult.FAIL, itemstack);
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
if (entityhuman instanceof EntityPlayer) {
|
2021-11-22 09:00:00 +11:00
|
|
|
CriterionTriggers.USED_ENDER_EYE.trigger((EntityPlayer) entityhuman, blockposition);
|
2019-12-18 13:07:14 +11:00
|
|
|
}
|