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