Browse Source

Change PlayerFishEvent priority to HIGH instead of HIGHEST

nossr50 4 years ago
parent
commit
31076e6ba9
2 changed files with 2 additions and 1 deletions
  1. 1 0
      Changelog.txt
  2. 1 1
      src/main/java/com/gmail/nossr50/listeners/PlayerListener.java

+ 1 - 0
Changelog.txt

@@ -2,6 +2,7 @@ Version 2.1.177
     Environmentally aware will now protect Wolves from Magma blocks
     Environmentally aware will now protect Wolves from Magma blocks
     Fixed a bug where mcMMO would fail to update a players name when it detected a name change
     Fixed a bug where mcMMO would fail to update a players name when it detected a name change
     mcMMO will treat vanished players as if they are offline when using the inspect command on them now (see notes)
     mcMMO will treat vanished players as if they are offline when using the inspect command on them now (see notes)
+    mcMMO now listens to PlayerFishEvent at HIGH event priority instead of HIGHEST
 
 
     NOTES:
     NOTES:
     A few changes were made to the inspect command, it used to reject you when used on vanished players, now it will be processed as if they are offline.
     A few changes were made to the inspect command, it used to reject you when used on vanished players, now it will be processed as if they are offline.

+ 1 - 1
src/main/java/com/gmail/nossr50/listeners/PlayerListener.java

@@ -258,7 +258,7 @@ public class PlayerListener implements Listener {
      *
      *
      * @param event The event to modify
      * @param event The event to modify
      */
      */
-    @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
+    @EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true)
     public void onPlayerFishHighest(PlayerFishEvent event) {
     public void onPlayerFishHighest(PlayerFishEvent event) {
         /* WORLD BLACKLIST CHECK */
         /* WORLD BLACKLIST CHECK */
         if(WorldBlacklist.isWorldBlacklisted(event.getPlayer().getWorld()))
         if(WorldBlacklist.isWorldBlacklisted(event.getPlayer().getWorld()))