mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
HUDmmo.java cleanup (formatting stuff, comment removal)
This commit is contained in:
parent
65e3384a96
commit
ae8997b4f3
@ -18,7 +18,6 @@ import com.gmail.nossr50.spout.SpoutStuff;
|
||||
|
||||
public class HUDmmo {
|
||||
private int center_x = 427/2;
|
||||
// private int center_y = 240/2; //Any reason we can't just delete this?
|
||||
|
||||
private String playerName = null;
|
||||
|
||||
@ -42,14 +41,9 @@ public class HUDmmo {
|
||||
* @param player Player whose HUD to initialize
|
||||
*/
|
||||
public void initializeHUD(Player player) {
|
||||
// PlayerProfile PP = Users.getProfile(player);
|
||||
HUDType type = Users.getProfile(player).getHUDType();
|
||||
SpoutPlayer sPlayer = SpoutManager.getPlayer(player);
|
||||
|
||||
// if (LoadProperties.partybar && PP.getPartyHUD()) {
|
||||
// mmoHelper.initialize(sPlayer, plugin); //PARTY HUD
|
||||
// }
|
||||
|
||||
switch (type) {
|
||||
case RETRO:
|
||||
initializeXpBarDisplayRetro(sPlayer);
|
||||
@ -106,7 +100,6 @@ public class HUDmmo {
|
||||
*/
|
||||
public void resetHUD() {
|
||||
SpoutPlayer sPlayer = SpoutStuff.getSpoutPlayer(playerName);
|
||||
// PlayerProfile PP = Users.getProfile(sPlayer);
|
||||
|
||||
if (sPlayer != null) {
|
||||
sPlayer.getMainScreen().removeWidgets(plugin);
|
||||
@ -117,10 +110,6 @@ public class HUDmmo {
|
||||
xpbg = null;
|
||||
xpicon = null;
|
||||
|
||||
// if (LoadProperties.partybar && PP.getPartyHUD()) {
|
||||
// mmoHelper.initialize(sPlayer, plugin);
|
||||
// }
|
||||
|
||||
sPlayer.getMainScreen().setDirty(true);
|
||||
}
|
||||
}
|
||||
@ -294,7 +283,7 @@ public class HUDmmo {
|
||||
|
||||
SkillType theType = getType(PP);
|
||||
|
||||
if (theType == null) { //Can this ever actually BE null?
|
||||
if (theType == null) { //Can this ever actually BE null? (Yes, it's null when the player has just logged in. It's not null when they gain XP in anything)
|
||||
return;
|
||||
}
|
||||
|
||||
@ -320,7 +309,7 @@ public class HUDmmo {
|
||||
|
||||
SkillType theType = getType(PP);
|
||||
|
||||
if (theType == null) { //Can this ever actually BE null?
|
||||
if (theType == null) { //Can this ever actually BE null? (Yes, it's null when the player has just logged in. It's not null when they gain XP in anything)
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user