Merge pull request #716 from deathbeam/fix-minimap-error
Fix NPE in minimap plugin
This commit is contained in:
@@ -106,9 +106,15 @@ public class MinimapPlugin extends Plugin
|
|||||||
originalDotSprites = Arrays.copyOf(originalDots, originalDots.length);
|
originalDotSprites = Arrays.copyOf(originalDots, originalDots.length);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void restoreOriginalDots()
|
private void restoreOriginalDots()
|
||||||
{
|
{
|
||||||
SpritePixels[] mapDots = client.getMapDots();
|
SpritePixels[] mapDots = client.getMapDots();
|
||||||
|
|
||||||
|
if (originalDotSprites == null || mapDots == null)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
System.arraycopy(originalDotSprites, 0, mapDots, 0, mapDots.length);
|
System.arraycopy(originalDotSprites, 0, mapDots, 0, mapDots.length);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user