mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2025-02-17 21:02:12 +01:00
Fix Lives sign NPE
This commit is contained in:
parent
a1b163e563
commit
b5e53cfce7
@ -90,6 +90,8 @@ public class LivesModifierSign extends Button {
|
||||
lives = NumberUtil.parseInt(getLine(1));
|
||||
if (EnumUtil.isValidEnum(Target.class, getLine(2).toUpperCase())) {
|
||||
target = Target.valueOf(getLine(2).toUpperCase());
|
||||
} else {
|
||||
target = Target.PLAYER;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user