Merge pull request #7502 from deathbeam/skip-out-of-scene

Null-check local location in trap overlay
This commit is contained in:
Adam
2019-01-22 19:14:24 -05:00
committed by GitHub
2 changed files with 7 additions and 0 deletions

View File

@@ -79,6 +79,7 @@ public class Perspective
* @return a {@link Point} on screen corresponding to the position in
* 3D-space
*/
@Nullable
public static Point localToCanvas(@Nonnull Client client, @Nonnull LocalPoint point, int plane)
{
return localToCanvas(client, point, plane, 0);
@@ -95,6 +96,7 @@ public class Perspective
* @return a {@link Point} on screen corresponding to the position in
* 3D-space
*/
@Nullable
public static Point localToCanvas(@Nonnull Client client, @Nonnull LocalPoint point, int plane, int zOffset)
{
final int tileHeight = getTileHeight(client, point, plane);