2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/item/ItemEnderEye.java
|
|
|
|
+++ b/net/minecraft/world/item/ItemEnderEye.java
|
2024-04-23 17:15:00 +02:00
|
|
|
@@ -95,7 +95,11 @@
|
2020-09-10 23:00:00 +02:00
|
|
|
entityendersignal.setItem(itemstack);
|
2021-11-21 23:00:00 +01:00
|
|
|
entityendersignal.signalTo(blockposition);
|
2024-04-23 17:15:00 +02:00
|
|
|
world.gameEvent((Holder) GameEvent.PROJECTILE_SHOOT, entityendersignal.position(), GameEvent.a.of((Entity) entityhuman));
|
2021-11-21 23:00:00 +01:00
|
|
|
- world.addFreshEntity(entityendersignal);
|
2019-12-18 03:07:14 +01:00
|
|
|
+ // CraftBukkit start
|
2021-11-21 23:00:00 +01:00
|
|
|
+ if (!world.addFreshEntity(entityendersignal)) {
|
2019-12-18 03:07:14 +01:00
|
|
|
+ return new InteractionResultWrapper(EnumInteractionResult.FAIL, itemstack);
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
if (entityhuman instanceof EntityPlayer) {
|
2021-11-21 23:00:00 +01:00
|
|
|
CriterionTriggers.USED_ENDER_EYE.trigger((EntityPlayer) entityhuman, blockposition);
|
2019-12-18 03:07:14 +01:00
|
|
|
}
|