mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-15 07:05:21 +01:00
Fix NPE
This commit is contained in:
parent
750db495d6
commit
15ae32ae84
@ -422,9 +422,11 @@ public class GameRules {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (initialLives == null) {
|
if (initialLives == null) {
|
||||||
|
if (defaultValues.hasLives() != null) {
|
||||||
initialLives = defaultValues.hasLives() ? null : -1;
|
initialLives = defaultValues.hasLives() ? null : -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param defaultValues
|
* @param defaultValues
|
||||||
|
Loading…
Reference in New Issue
Block a user