Fix: "toString" In Player.java Now Correctly Handles "null" Argument For "totem" Attribute.
This commit is contained in:
@@ -254,7 +254,9 @@ public class Player implements Serializable {
|
|||||||
|
|
||||||
table.addHeader(this.getUserName());
|
table.addHeader(this.getUserName());
|
||||||
table.addRow("RESOURCES:");
|
table.addRow("RESOURCES:");
|
||||||
|
if(this.totem != null) {
|
||||||
table.addRow("Totem: " + this.totem.toString());
|
table.addRow("Totem: " + this.totem.toString());
|
||||||
|
}
|
||||||
table.addRow("Food: " + this.getFoodValue());
|
table.addRow("Food: " + this.getFoodValue());
|
||||||
table.addRow("Prestige: " + this.getPrestigeValue());
|
table.addRow("Prestige: " + this.getPrestigeValue());
|
||||||
table.addSeparator();
|
table.addSeparator();
|
||||||
|
|||||||
Reference in New Issue
Block a user