mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-04 06:28:49 +00:00
Catch IllegalArgumentException
Signed-off-by: BuildTools <[email protected]>
This commit is contained in:
1 parent
541f85596b
commit
725d3d964b
1 file changed
+8
-4
@@ -707,10 +707,14 @@ public class DataManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static TeleportationPoint getPlayerOfflinePosition(int playerID, Connection connection) throws SQLException {
|
public static TeleportationPoint getPlayerOfflinePosition(int playerID, Connection connection) throws SQLException {
|
||||||
Integer locationID = getPlayerInteger(playerID, "offline_location_id", connection);
|
try {
|
||||||
if (locationID != null) {
|
Integer locationID = getPlayerInteger(playerID, "offline_location_id", connection);
|
||||||
return getTeleportationPoint(locationID, connection);
|
if (locationID != null) {
|
||||||
} else {
|
return getTeleportationPoint(locationID, connection);
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
} catch (IllegalArgumentException e) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user