Fixed NPE when user clicks the HUD button for Spout

This commit is contained in:
nossr50
2012-05-01 06:30:57 -07:00
parent 04f3e44c3a
commit f7405a82e6
2 changed files with 2 additions and 3 deletions

View File

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