Fix method signature breakage in versions lower than 1.14 (#3175)

This commit is contained in:
Josh Roy 2020-04-16 19:55:06 -04:00 committed by GitHub
parent 849d095e9a
commit 47f27a8016
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}