diff --git a/src/kernel/gps/GPS.hx b/src/kernel/gps/GPS.hx index 04d8e16..fe4282d 100644 --- a/src/kernel/gps/GPS.hx +++ b/src/kernel/gps/GPS.hx @@ -115,7 +115,12 @@ class GPS { } @:allow(kernel.net.Net) - private static function handlePackage(pack:Package, dist:Float, iface:INetworkInterface) { + private static function handlePackage(pack:Package, dist:Null, iface:INetworkInterface) { + if (dist == null) { + // Message comes from another dimension and has no distance. + return; + } + switch (pack.type) { case GPSRequest: if (!shouldRespond)