perspective: check coordinates are in scene before conversion in worldToLocal

This commit is contained in:
Adam
2018-02-21 11:54:41 -05:00
parent f8c714325f
commit ace8c0ce79

View File

@@ -276,6 +276,11 @@ public class Perspective
public static Point worldToLocal(Client client, Point point)
{
if (!isWorldInScene(client, point))
{
return null;
}
int baseX = client.getBaseX();
int baseY = client.getBaseY();