aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/mache-vineflower-stripped/net/minecraft/world/level/block/BellBlock.java.patch
blob: 86f3d426df944e1a7e98054badfc64a2b1bea9d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/net/minecraft/world/level/block/BellBlock.java
+++ b/net/minecraft/world/level/block/BellBlock.java
@@ -140,6 +146,11 @@
             if (direction == null) {
                 direction = level.getBlockState(pos).getValue(FACING);
             }
+            // CraftBukkit start
+            if (!org.bukkit.craftbukkit.event.CraftEventFactory.handleBellRingEvent(level, pos, direction, entity)) {
+                return false;
+            }
+            // CraftBukkit end
 
             ((BellBlockEntity)blockEntity).onHit(direction);
             level.playSound(null, pos, SoundEvents.BELL_BLOCK, SoundSource.BLOCKS, 2.0F, 1.0F);