New cape system and refactored spout appearances.
This commit is contained in:
@@ -53,13 +53,14 @@ public class FPlayer extends PlayerEntity implements EconomyParticipator
|
||||
if (oldFaction != null) oldFaction.removeFPlayer(this);
|
||||
faction.addFPlayer(this);
|
||||
this.factionId = faction.getId();
|
||||
SpoutFeatures.updateAppearances(this.getPlayer());
|
||||
SpoutFeatures.updateTitle(this, null);
|
||||
SpoutFeatures.updateTitle(null, this);
|
||||
}
|
||||
|
||||
// FIELD: role
|
||||
private Rel role;
|
||||
public Rel getRole() { return this.role; }
|
||||
public void setRole(Rel role) { this.role = role; SpoutFeatures.updateAppearances(this.getPlayer()); }
|
||||
public void setRole(Rel role) { this.role = role; SpoutFeatures.updateTitle(this, null); }
|
||||
|
||||
// FIELD: title
|
||||
private String title;
|
||||
@@ -141,7 +142,9 @@ public class FPlayer extends PlayerEntity implements EconomyParticipator
|
||||
|
||||
if (doSpoutUpdate)
|
||||
{
|
||||
SpoutFeatures.updateAppearances(this.getPlayer());
|
||||
SpoutFeatures.updateTitle(this, null);
|
||||
SpoutFeatures.updateTitle(null, this);
|
||||
SpoutFeatures.updateCape(this.getPlayer(), null);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user