mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2024-11-22 04:16:17 +00:00
16 lines
782 B
Diff
16 lines
782 B
Diff
--- a/net/minecraft/world/item/ItemEnderEye.java
|
|
+++ b/net/minecraft/world/item/ItemEnderEye.java
|
|
@@ -99,7 +99,11 @@
|
|
entityendersignal.setItem(itemstack);
|
|
entityendersignal.signalTo(blockposition);
|
|
world.gameEvent((Holder) GameEvent.PROJECTILE_SHOOT, entityendersignal.position(), GameEvent.a.of((Entity) entityhuman));
|
|
- world.addFreshEntity(entityendersignal);
|
|
+ // CraftBukkit start
|
|
+ if (!world.addFreshEntity(entityendersignal)) {
|
|
+ return EnumInteractionResult.FAIL;
|
|
+ }
|
|
+ // CraftBukkit end
|
|
if (entityhuman instanceof EntityPlayer) {
|
|
EntityPlayer entityplayer = (EntityPlayer) entityhuman;
|
|
|