From ca09587d8713b52815ca1916a0d01c3f6f5f48b1 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 7 Feb 2024 19:25:48 -0600 Subject: [PATCH] server side race/cass restrictions --- src/engine/objects/PlayerCharacter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index 36ed401e..194f6930 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -4561,7 +4561,8 @@ public class PlayerCharacter extends AbstractCharacter { this.setBounds(playerBounds); //assign enum values for restrictions - this.absRace = Enum.MonsterType.valueOf(this.getRace().getName().replace("-","")); + String race = this.getRace().getName().replace("-",""); + this.absRace = Enum.MonsterType.valueOf(race); if(this.promotionClass != null) this.absClass = Enum.PromoteType.valueOf(this.getPromotionClass().getName());