mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-09-12 23:45:12 -04:00
Optimized older java - pre-nge stuff
This commit is contained in:
Regular → Executable
+3
-11
@@ -1,14 +1,7 @@
|
||||
package script.holocron;
|
||||
|
||||
import script.*;
|
||||
import script.base_class.*;
|
||||
import script.combat_engine.*;
|
||||
import java.util.Arrays;
|
||||
import java.util.Hashtable;
|
||||
import java.util.Vector;
|
||||
import script.base_script;
|
||||
|
||||
import script.library.utils;
|
||||
import script.dictionary;
|
||||
import script.obj_id;
|
||||
|
||||
public class datapad_entry extends script.base_script
|
||||
{
|
||||
@@ -21,7 +14,6 @@ public class datapad_entry extends script.base_script
|
||||
}
|
||||
public int OnDestroy(obj_id self) throws InterruptedException
|
||||
{
|
||||
obj_id player = getObjIdObjVar(self, "newbie_handoff.player");
|
||||
if (hasObjVar(self, "hasClientPath"))
|
||||
{
|
||||
destroyClientPath(getObjIdObjVar(self, "hasClientPath"));
|
||||
@@ -29,7 +21,7 @@ public class datapad_entry extends script.base_script
|
||||
}
|
||||
dictionary params = new dictionary();
|
||||
params.put("name", getStringObjVar(self, "newbie_handoff.name"));
|
||||
messageTo(player, "removeDatapadEntryData", params, 0, true);
|
||||
messageTo(getObjIdObjVar(self, "newbie_handoff.player"), "removeDatapadEntryData", params, 0, true);
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user