Fixed disabled manor system NPE.

Contributed by Sahar.
This commit is contained in:
MobiusDevelopment
2019-11-02 16:48:59 +00:00
parent ec736e4934
commit 2769582f88
17 changed files with 85 additions and 0 deletions

View File

@ -690,6 +690,11 @@ public class CastleManorManager implements IXmlReader, IStorable
public void resetManorData(int castleId)
{
if (!Config.ALLOW_MANOR)
{
return;
}
_procure.get(castleId).clear();
_procureNext.get(castleId).clear();
_production.get(castleId).clear();