diff options
Diffstat (limited to 'patch-remap/mache-vineflower-stripped/net/minecraft/world/level/block/BellBlock.java.patch')
-rw-r--r-- | patch-remap/mache-vineflower-stripped/net/minecraft/world/level/block/BellBlock.java.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/patch-remap/mache-vineflower-stripped/net/minecraft/world/level/block/BellBlock.java.patch b/patch-remap/mache-vineflower-stripped/net/minecraft/world/level/block/BellBlock.java.patch new file mode 100644 index 0000000000..86f3d426df --- /dev/null +++ b/patch-remap/mache-vineflower-stripped/net/minecraft/world/level/block/BellBlock.java.patch @@ -0,0 +1,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); |