Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Owain van Brakel
2019-11-08 04:58:54 +01:00
4 changed files with 9 additions and 4 deletions

View File

@@ -389,6 +389,11 @@ public class ClueScrollPlugin extends Plugin
for (WorldPoint location : locations) for (WorldPoint location : locations)
{ {
if (location == null)
{
continue;
}
// Only set the location hint arrow if we do not already have more accurate location // Only set the location hint arrow if we do not already have more accurate location
if (location.isInScene(client) if (location.isInScene(client)
&& this.displayHintArrows && this.displayHintArrows

View File

@@ -24,10 +24,10 @@
*/ */
package net.runelite.client.plugins.raidsthieving.BatSolver; package net.runelite.client.plugins.raidsthieving.BatSolver;
import java.util.HashMap;
import java.util.Map; import java.util.Map;
import net.runelite.api.Point; import net.runelite.api.Point;
import net.runelite.client.plugins.raidsthieving.ThievingChest; import net.runelite.client.plugins.raidsthieving.ThievingChest;
import java.util.HashMap;
public class ChestIdentifier public class ChestIdentifier
{ {
@@ -251,7 +251,7 @@ public class ChestIdentifier
public void indentifyChest(ThievingChest chest) public void indentifyChest(ThievingChest chest)
{ {
int id = chestIds.get(chest.getInstancePoint()); int id = chestIds.getOrDefault(chest.getInstancePoint(), -1);
chest.setChestId(id); chest.setChestId(id);
} }

View File

@@ -192,7 +192,7 @@ public class ScreenMarkerPlugin extends Plugin
public void finishCreation(boolean aborted) public void finishCreation(boolean aborted)
{ {
if (!aborted) if (!aborted && currentMarker != null)
{ {
final ScreenMarkerOverlay screenMarkerOverlay = new ScreenMarkerOverlay(currentMarker); final ScreenMarkerOverlay screenMarkerOverlay = new ScreenMarkerOverlay(currentMarker);
screenMarkerOverlay.setPreferredLocation(overlay.getBounds().getLocation()); screenMarkerOverlay.setPreferredLocation(overlay.getBounds().getLocation());

File diff suppressed because one or more lines are too long