diff --git a/Spigot-Server-Patches/0047-Add-BeaconEffectEvent.patch b/Spigot-Server-Patches/0047-Add-BeaconEffectEvent.patch index 1b1665944a..a3d75405a5 100644 --- a/Spigot-Server-Patches/0047-Add-BeaconEffectEvent.patch +++ b/Spigot-Server-Patches/0047-Add-BeaconEffectEvent.patch @@ -1,11 +1,11 @@ -From 0ef61deea4cab7fac10e7ece97a0811d5ac83113 Mon Sep 17 00:00:00 2001 +From e1c0beb6e759e4ba5f108b9f1ac5f9c3fdd4b154 Mon Sep 17 00:00:00 2001 From: Byteflux Date: Wed, 2 Mar 2016 23:30:53 -0600 Subject: [PATCH] Add BeaconEffectEvent diff --git a/src/main/java/net/minecraft/server/TileEntityBeacon.java b/src/main/java/net/minecraft/server/TileEntityBeacon.java -index ed5b374..048f5bb 100644 +index ed5b374..85b1441 100644 --- a/src/main/java/net/minecraft/server/TileEntityBeacon.java +++ b/src/main/java/net/minecraft/server/TileEntityBeacon.java @@ -13,6 +13,15 @@ import org.bukkit.craftbukkit.entity.CraftHumanEntity; @@ -55,11 +55,11 @@ index ed5b374..048f5bb 100644 + BeaconEffectEvent event = new BeaconEffectEvent(block, secondaryEffect, (Player) entityhuman.getBukkitEntity(), false); + if (CraftEventFactory.callEvent(event).isCancelled()) continue; + PotionEffect effect = event.getEffect(); -+ entityhuman.getBukkitEntity().addPotionEffect(effect); ++ entityhuman.getBukkitEntity().addPotionEffect(effect, true); + // Paper end } } } -- -2.8.0 +2.8.2