Fix Lives sign NPE

This commit is contained in:
Daniel Saukel 2020-06-30 13:49:38 +02:00
parent a1b163e563
commit b5e53cfce7
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}
}