demonicgorilla: Use equals when comparing objects

This commit is contained in:
sdburns1998
2019-07-07 03:52:43 +02:00
parent 79c08b96d5
commit e979f7fc65

View File

@@ -206,7 +206,7 @@ public class DemonicGorillaPlugin extends Plugin
} }
boolean correctPrayer = boolean correctPrayer =
target == null || // If player is out of memory, assume prayer was correct target == null || // If player is out of memory, assume prayer was correct
attackStyle == protectedStyle; attackStyle.equals(protectedStyle);
if (attackStyle == DemonicGorilla.AttackStyle.BOULDER) if (attackStyle == DemonicGorilla.AttackStyle.BOULDER)
{ {