geforkt von Mirrors/Paper
d3a23f42c3
By: md_5 <git@md-5.net>
16 Zeilen
782 B
Diff
16 Zeilen
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;
|
|
|