grotesqueguardians: Remove redundant initializers
This commit is contained in:
@@ -74,7 +74,7 @@ class GrotesqueGuardiansOverlay extends Overlay
|
|||||||
// TODO: Awaiting GraphicsObjectDespawn event to be tracked to make this more efficient.
|
// TODO: Awaiting GraphicsObjectDespawn event to be tracked to make this more efficient.
|
||||||
for (GraphicsObject graphicsObject : client.getGraphicsObjects())
|
for (GraphicsObject graphicsObject : client.getGraphicsObjects())
|
||||||
{
|
{
|
||||||
Color color = null;
|
Color color;
|
||||||
|
|
||||||
if (graphicsObject.getId() >= GROTESQUE_GUARDIANS_LIGHTNING_START && graphicsObject.getId() <= GROTESQUE_GUARDIANS_LIGHTNING_END)
|
if (graphicsObject.getId() >= GROTESQUE_GUARDIANS_LIGHTNING_START && graphicsObject.getId() <= GROTESQUE_GUARDIANS_LIGHTNING_END)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ public class GrotesqueGuardiansPrayerOverlay extends Overlay
|
|||||||
if ((plugin.isInGargs()) && (plugin.getPrayAgainst() != null) && (plugin.getDusk() != null))
|
if ((plugin.isInGargs()) && (plugin.getPrayAgainst() != null) && (plugin.getDusk() != null))
|
||||||
{
|
{
|
||||||
DuskAttack attack = plugin.getPrayAgainst();
|
DuskAttack attack = plugin.getPrayAgainst();
|
||||||
BufferedImage prayerImage = null;
|
BufferedImage prayerImage;
|
||||||
prayerImage = getPrayerImage(attack);
|
prayerImage = getPrayerImage(attack);
|
||||||
imagePanelComponent.setBackgroundColor(client
|
imagePanelComponent.setBackgroundColor(client
|
||||||
.isPrayerActive(attack.getPrayer()) ? ComponentConstants.STANDARD_BACKGROUND_COLOR : NOT_ACTIVATED_BACKGROUND_COLOR);
|
.isPrayerActive(attack.getPrayer()) ? ComponentConstants.STANDARD_BACKGROUND_COLOR : NOT_ACTIVATED_BACKGROUND_COLOR);
|
||||||
|
|||||||
Reference in New Issue
Block a user