Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-23 14:50:08 +01:00
16 Zeilen
726 B
Diff
16 Zeilen
726 B
Diff
|
--- a/net/minecraft/server/ItemEnderEye.java
|
||
|
+++ b/net/minecraft/server/ItemEnderEye.java
|
||
|
@@ -61,7 +61,11 @@
|
||
|
|
||
|
entityendersignal.b(itemstack);
|
||
|
entityendersignal.a(blockposition);
|
||
|
- world.addEntity(entityendersignal);
|
||
|
+ // CraftBukkit start
|
||
|
+ if (!world.addEntity(entityendersignal)) {
|
||
|
+ return new InteractionResultWrapper(EnumInteractionResult.FAIL, itemstack);
|
||
|
+ }
|
||
|
+ // CraftBukkit end
|
||
|
if (entityhuman instanceof EntityPlayer) {
|
||
|
CriterionTriggers.m.a((EntityPlayer) entityhuman, blockposition);
|
||
|
}
|