From f952785c8e1f0ff4809472658d026107d1658523 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 13 Feb 2024 20:46:28 -0600 Subject: [PATCH] implement server side restrictions --- src/engine/objects/PlayerCharacter.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index 477878c4..c973b61c 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -4576,9 +4576,13 @@ public class PlayerCharacter extends AbstractCharacter { this.absGender = SexType.FEMALE; for(CharacterRune rune : this.runes){ - DisciplineType disc = DisciplineType.valueOf(RuneBase.getRuneBase(rune.getRuneBaseID()).getName().replace("-", "").replace(" ", "")); - if(disc != null){ - this.absDisciplines.add(disc); + try { + DisciplineType disc = DisciplineType.valueOf(RuneBase.getRuneBase(rune.getRuneBaseID()).getName().replace("-", "").replace(" ", "")); + if (disc != null) { + this.absDisciplines.add(disc); + } + } catch(Exception e){ + } } }