cluescrolls: add tile null check. (#1907)
cluescrolls: add tile null check.
This commit is contained in:
@@ -681,6 +681,11 @@ public class ClueScrollPlugin extends Plugin
|
|||||||
final Tile tile = tiles[client.getPlane()][localLocation.getSceneX()][localLocation.getSceneY()];
|
final Tile tile = tiles[client.getPlane()][localLocation.getSceneX()][localLocation.getSceneY()];
|
||||||
objectsToMark.clear();
|
objectsToMark.clear();
|
||||||
|
|
||||||
|
if (tile == null || tile.getGameObjects() == null)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
for (GameObject object : tile.getGameObjects())
|
for (GameObject object : tile.getGameObjects())
|
||||||
{
|
{
|
||||||
if (object == null)
|
if (object == null)
|
||||||
|
|||||||
Reference in New Issue
Block a user