diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java b/paper-server/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java index f8ec0bca16..798a608784 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java @@ -377,10 +377,11 @@ public class CraftEventFactory { return tradeSelectEvent; } + @SuppressWarnings("deprecation") // Paper use deprecated event to maintain compat (it extends modern event) public static boolean handleBellRingEvent(Level world, BlockPos position, Direction direction, Entity entity) { Block block = CraftBlock.at(world, position); BlockFace bukkitDirection = CraftBlock.notchToBlockFace(direction); - BellRingEvent event = new BellRingEvent(block, bukkitDirection, (entity != null) ? entity.getBukkitEntity() : null); + BellRingEvent event = new io.papermc.paper.event.block.BellRingEvent(block, bukkitDirection, (entity != null) ? entity.getBukkitEntity() : null); // Paper - deprecated BellRingEvent Bukkit.getPluginManager().callEvent(event); return !event.isCancelled(); }