attack styles: fix npe when config values are unset
This commit is contained in:
@@ -203,7 +203,7 @@ public class AttackStylesPlugin extends Plugin
|
||||
{
|
||||
if (event.getGroup().equals("attackIndicator"))
|
||||
{
|
||||
boolean enabled = event.getNewValue().equals("true");
|
||||
boolean enabled = Boolean.TRUE.toString().equals(event.getNewValue());
|
||||
switch (event.getKey())
|
||||
{
|
||||
case "warnForDefensive":
|
||||
|
||||
Reference in New Issue
Block a user