2021-03-16 09:00:00 +11:00
|
|
|
--- a/net/minecraft/world/item/ItemEnderEye.java
|
|
|
|
+++ b/net/minecraft/world/item/ItemEnderEye.java
|
2024-06-14 01:05:00 +10:00
|
|
|
@@ -97,7 +97,11 @@
|
2020-09-11 07:00:00 +10:00
|
|
|
entityendersignal.setItem(itemstack);
|
2021-11-22 09:00:00 +11:00
|
|
|
entityendersignal.signalTo(blockposition);
|
2024-04-24 01:15:00 +10:00
|
|
|
world.gameEvent((Holder) 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) {
|
2024-06-14 01:05:00 +10:00
|
|
|
EntityPlayer entityplayer = (EntityPlayer) entityhuman;
|
|
|
|
|