diff options
Diffstat (limited to 'patch-remap/og/net/minecraft/world/level/block/BlockBell.patch')
-rw-r--r-- | patch-remap/og/net/minecraft/world/level/block/BlockBell.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/patch-remap/og/net/minecraft/world/level/block/BlockBell.patch b/patch-remap/og/net/minecraft/world/level/block/BlockBell.patch new file mode 100644 index 0000000000..76a048508f --- /dev/null +++ b/patch-remap/og/net/minecraft/world/level/block/BlockBell.patch @@ -0,0 +1,14 @@ +--- a/net/minecraft/world/level/block/BlockBell.java ++++ b/net/minecraft/world/level/block/BlockBell.java +@@ -146,6 +146,11 @@ + 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); |