mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2025-01-23 08:31:24 +01:00
Fixed NPE on MobType.get
Signed-off-by: Grafe <flingelfrank@hotmail.com>
This commit is contained in:
parent
c6a403c7b5
commit
5317da864a
@ -227,10 +227,13 @@ public class DMobType {
|
||||
return mobType;
|
||||
}
|
||||
}
|
||||
for(DMobType mobType:P.p.mainConfig.defaultDungeon.getMobTypes()){
|
||||
if(mobType.name.equalsIgnoreCase(name)){
|
||||
return mobType;
|
||||
}
|
||||
|
||||
if(P.p.mainConfig.defaultDungeon!=null){
|
||||
for(DMobType mobType:P.p.mainConfig.defaultDungeon.getMobTypes()){
|
||||
if(mobType.name.equalsIgnoreCase(name)){
|
||||
return mobType;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user