flip the conditional

This commit is contained in:
2022-08-07 11:59:22 +02:00
parent 44a5c6d800
commit 93efa37e77
@@ -19,7 +19,7 @@ public class FishingListener implements Listener {
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true) @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
public void onFish(org.bukkit.event.player.PlayerFishEvent event) { public void onFish(org.bukkit.event.player.PlayerFishEvent event) {
if (event.getCaught() instanceof Player) { if (event.getCaught() instanceof Player) {
if (!PreventStabby.getPlugin().getConfigCache().isAllow_fishing_rod_pull()) return; if (PreventStabby.getPlugin().getConfigCache().isAllow_fishing_rod_pull()) return;
UUID damager = event.getPlayer().getUniqueId(); UUID damager = event.getPlayer().getUniqueId();
UUID victim = event.getCaught().getUniqueId(); UUID victim = event.getCaught().getUniqueId();
if (damager == victim) if (damager == victim)