2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/item/ItemEndCrystal.java
|
|
|
|
+++ b/net/minecraft/world/item/ItemEndCrystal.java
|
2024-04-23 17:15:00 +02:00
|
|
|
@@ -47,6 +47,11 @@
|
2018-10-22 21:00:00 +02:00
|
|
|
EntityEnderCrystal entityendercrystal = new EntityEnderCrystal(world, d0 + 0.5D, d1, d2 + 0.5D);
|
|
|
|
|
2021-11-21 23:00:00 +01:00
|
|
|
entityendercrystal.setShowBottom(false);
|
2018-10-22 21:00:00 +02:00
|
|
|
+ // CraftBukkit start
|
|
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callEntityPlaceEvent(itemactioncontext, entityendercrystal).isCancelled()) {
|
|
|
|
+ return EnumInteractionResult.FAIL;
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
2021-11-21 23:00:00 +01:00
|
|
|
world.addFreshEntity(entityendercrystal);
|
2024-04-23 17:15:00 +02:00
|
|
|
world.gameEvent((Entity) itemactioncontext.getPlayer(), (Holder) GameEvent.ENTITY_PLACE, blockposition1);
|
2023-06-07 17:30:00 +02:00
|
|
|
EnderDragonBattle enderdragonbattle = ((WorldServer) world).getDragonFight();
|