Add null-check for target tile in ObjectIndicatorsPlugin (#7115)
Sometimes there is no target tile (e.g climb-down ladders).
This commit is contained in:
@@ -257,6 +257,11 @@ public class ObjectIndicatorsPlugin extends Plugin implements KeyListener
|
||||
|
||||
private TileObject findTileObject(Tile tile, int id)
|
||||
{
|
||||
if (tile == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
final GameObject[] tileGameObjects = tile.getGameObjects();
|
||||
|
||||
for (GameObject object : tileGameObjects)
|
||||
|
||||
Reference in New Issue
Block a user