2
0
Эх сурвалжийг харах

Fixed NPE when user clicks the HUD button for Spout

nossr50 13 жил өмнө
parent
commit
f7405a82e6

+ 1 - 0
Changelog.txt

@@ -16,6 +16,7 @@ Version 1.3.07
  + Added a permission node for Farmer's Diet
  + Added config options for enabling/disabling specific double drops
  + Added automatic zip backup of flatfile database & config files
+ = Fixed NPE when user clicked the HUD button with Spout
  = Fixed bug where the permission node for Impact didn't work
  = Fixed some bypass nodes defaulting true for Ops
  = Fixed bug with trying to use Chimera Wing while standing on a half-block

+ 1 - 3
src/main/java/com/gmail/nossr50/datatypes/popups/PopupMMO.java

@@ -8,12 +8,10 @@ import com.gmail.nossr50.mcMMO;
 import com.gmail.nossr50.datatypes.PlayerProfile;
 import com.gmail.nossr50.datatypes.buttons.ButtonEscape;
 import com.gmail.nossr50.datatypes.buttons.ButtonHUDStyle;
-import com.gmail.nossr50.datatypes.buttons.ButtonPartyToggle;
 
 public class PopupMMO extends GenericPopup {
 
     private ButtonHUDStyle HUDButton = null;
-    private ButtonPartyToggle PartyButton = null;
     private ButtonEscape EscapeButton = null;
     private GenericLabel mcMMO_label = new GenericLabel();
     private GenericLabel tip_escape = new GenericLabel();
@@ -53,7 +51,7 @@ public class PopupMMO extends GenericPopup {
 
     public void updateButtons(PlayerProfile PP) {
         HUDButton.updateText(PP);
-        PartyButton.updateText(PP);
+        //PartyButton.updateText(PP);
         this.setDirty(true);
     }
 }