mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 11:44:19 +01:00
43702a9e10
By: md_5 <git@md-5.net>
15 lines
776 B
Diff
15 lines
776 B
Diff
--- a/net/minecraft/world/item/ItemEnderEye.java
|
|
+++ b/net/minecraft/world/item/ItemEnderEye.java
|
|
@@ -85,7 +85,11 @@
|
|
|
|
entityendersignal.setItem(itemstack);
|
|
entityendersignal.signalTo(blockposition);
|
|
- world.addFreshEntity(entityendersignal);
|
|
+ // CraftBukkit start
|
|
+ if (!world.addFreshEntity(entityendersignal)) {
|
|
+ return new InteractionResultWrapper(EnumInteractionResult.FAIL, itemstack);
|
|
+ }
|
|
+ // CraftBukkit end
|
|
if (entityhuman instanceof EntityPlayer) {
|
|
CriterionTriggers.USED_ENDER_EYE.trigger((EntityPlayer) entityhuman, blockposition);
|
|
}
|