mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-18 00:25:39 +01:00
15 lines
808 B
Diff
15 lines
808 B
Diff
--- a/net/minecraft/server/ItemEndCrystal.java
|
|
+++ b/net/minecraft/server/ItemEndCrystal.java
|
|
@@ -34,6 +34,11 @@
|
|
EntityEnderCrystal entityendercrystal = new EntityEnderCrystal(world, d0 + 0.5D, d1, d2 + 0.5D);
|
|
|
|
entityendercrystal.setShowingBottom(false);
|
|
+ // CraftBukkit start
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callEntityPlaceEvent(itemactioncontext, entityendercrystal).isCancelled()) {
|
|
+ return EnumInteractionResult.FAIL;
|
|
+ }
|
|
+ // CraftBukkit end
|
|
world.addEntity(entityendercrystal);
|
|
EnderDragonBattle enderdragonbattle = ((WorldServer) world).getDragonBattle();
|
|
|