Fix: "toString" In Player.java Now Correctly Handles "null" Argument For "totem" Attribute.

This commit is contained in:
GabrieleRadice
2026-05-13 17:52:56 +02:00
parent aa7a22b160
commit 1532ba76aa
@@ -254,7 +254,9 @@ public class Player implements Serializable {
table.addHeader(this.getUserName());
table.addRow("RESOURCES:");
table.addRow("Totem: " + this.totem.toString());
if(this.totem != null) {
table.addRow("Totem: " + this.totem.toString());
}
table.addRow("Food: " + this.getFoodValue());
table.addRow("Prestige: " + this.getPrestigeValue());
table.addSeparator();