This repository has been archived by the owner on Aug 14, 2023. It is now read-only.
forked from open-osrs/plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cluescroll: fix cluescroll plugin
- Loading branch information
xKylee
committed
May 29, 2020
1 parent
3092454
commit 281c8e5
Showing
16 changed files
with
152 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
/* | ||
* Copyright (c) 2016-2017, Seth <[email protected]> | ||
* Copyright (c) 2018, Lotto <https://github.com/devLotto> | ||
* Copyright (c) 2019, David <https://github.com/drahenshaw> | ||
* All rights reserved. | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
|
@@ -30,7 +31,6 @@ | |
import java.awt.Dimension; | ||
import java.awt.Graphics2D; | ||
import javax.inject.Inject; | ||
import javax.inject.Singleton; | ||
import net.runelite.api.Client; | ||
import net.runelite.api.Item; | ||
import static net.runelite.api.ItemID.*; | ||
|
@@ -47,7 +47,6 @@ | |
import net.runelite.client.ui.overlay.OverlayPriority; | ||
import net.runelite.client.ui.overlay.components.LineComponent; | ||
|
||
@Singleton | ||
public class ClueScrollOverlay extends OverlayPanel | ||
{ | ||
private static final ItemRequirement HAS_SPADE = new SingleItemRequirement(SPADE); | ||
|
@@ -81,7 +80,7 @@ public class ClueScrollOverlay extends OverlayPanel | |
private final Client client; | ||
|
||
@Inject | ||
private ClueScrollOverlay(final ClueScrollPlugin plugin, final Client client) | ||
private ClueScrollOverlay(ClueScrollPlugin plugin, Client client) | ||
{ | ||
super(plugin); | ||
this.plugin = plugin; | ||
|
@@ -117,8 +116,8 @@ public Dimension render(Graphics2D graphics) | |
|
||
if (clue.isRequiresLight() | ||
&& ((clue.getHasFirePit() == null || client.getVar(clue.getHasFirePit()) != 1) | ||
&& (inventoryItems == null || !HAS_LIGHT.fulfilledBy(inventoryItems)) | ||
&& (equippedItems == null || !HAS_LIGHT.fulfilledBy(equippedItems)))) | ||
&& (inventoryItems == null || !HAS_LIGHT.fulfilledBy(inventoryItems)) | ||
&& (equippedItems == null || !HAS_LIGHT.fulfilledBy(equippedItems)))) | ||
{ | ||
panelComponent.getChildren().add(LineComponent.builder().left("").build()); | ||
panelComponent.getChildren().add(LineComponent.builder().left("Requires Light Source!").leftColor(Color.RED).build()); | ||
|
Oops, something went wrong.