소스 검색

Change PlayerFishEvent priority to HIGH instead of HIGHEST

nossr50 4 년 전
부모
커밋
31076e6ba9
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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
     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 now listens to PlayerFishEvent at HIGH event priority instead of HIGHEST
 
     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.

+ 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
      */
-    @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
+    @EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true)
     public void onPlayerFishHighest(PlayerFishEvent event) {
         /* WORLD BLACKLIST CHECK */
         if(WorldBlacklist.isWorldBlacklisted(event.getPlayer().getWorld()))