mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 03:52:45 +01:00
8398e12b34
By: md_5 <git@md-5.net>
14 lines
732 B
Diff
14 lines
732 B
Diff
--- 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);
|