mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-08-27 16:56:48 -04:00
Fixed issue when user tries to hyperspace to a point and that point does not exist.
This commit is contained in:
@@ -593,10 +593,13 @@ public class combat_ship_player extends script.base_script
|
||||
}
|
||||
LOG("space", "params is " + params);
|
||||
String hyperspacePoint = strParams[0];
|
||||
String sceneName = getSceneForHyperspacePoint(hyperspacePoint);
|
||||
if(sceneName == null || sceneName.equals("")){
|
||||
LOG("space","WARNING: Unable to get hyperspace scene name from hyperspacePoint (" + hyperspacePoint + "). Self (" + self + ":" + getName(self) + "), Target(" + target + ":" + getName(target) + ").");
|
||||
}
|
||||
if (!isGod(self))
|
||||
{
|
||||
String sceneName = getSceneForHyperspacePoint(hyperspacePoint);
|
||||
if (sceneName.equals("space_kashyyyk"))
|
||||
if (sceneName != null && sceneName.equals("space_kashyyyk"))
|
||||
{
|
||||
if (!features.hasEpisode3Expansion(self))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user