2023-04-02 06:35:13 +02:00
|
|
|
--- a/net/minecraft/world/level/block/BlockBell.java
|
|
|
|
+++ b/net/minecraft/world/level/block/BlockBell.java
|
2023-12-05 17:40:00 +01:00
|
|
|
@@ -146,6 +146,11 @@
|
2023-04-02 06:35:13 +02:00
|
|
|
if (enumdirection == null) {
|
|
|
|
enumdirection = (EnumDirection) world.getBlockState(blockposition).getValue(BlockBell.FACING);
|
|
|
|
}
|
|
|
|
+ // CraftBukkit start
|
|
|
|
+ if (!org.bukkit.craftbukkit.event.CraftEventFactory.handleBellRingEvent(world, blockposition, enumdirection, entity)) {
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
|
|
|
|
((TileEntityBell) tileentity).onHit(enumdirection);
|
|
|
|
world.playSound((EntityHuman) null, blockposition, SoundEffects.BELL_BLOCK, SoundCategory.BLOCKS, 2.0F, 1.0F);
|