mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-24 17:12:03 +01:00
Fix method signature breakage in versions lower than 1.14 (#3175)
This commit is contained in:
parent
849d095e9a
commit
47f27a8016
@ -831,7 +831,7 @@ public class EssentialsPlayerListener implements Listener {
|
||||
private final class ArrowPickupListener implements Listener {
|
||||
@EventHandler(priority = EventPriority.LOW)
|
||||
public void onArrowPickup(final org.bukkit.event.player.PlayerPickupArrowEvent event) {
|
||||
if (event.getArrow().hasMetadata(Commandfireball.FIREBALL_META_KEY)) {
|
||||
if (event.getItem().hasMetadata(Commandfireball.FIREBALL_META_KEY)) {
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user