mirror of
https://bitbucket.org/seefoe/dsrc.git
synced 2026-10-07 22:13:29 -04:00
Fixed issue that occurs when a smuggler tries to inspect a corpse for contraband that doesn't have a loot table defined.
This commit is contained in:
Regular → Executable
+1
-1
@@ -890,7 +890,7 @@ public class smuggler extends script.base_script
|
||||
return;
|
||||
}
|
||||
String strLootTable = getStringObjVar(target, "loot.lootTable");
|
||||
if (!strLootTable.startsWith("npc") && (!strLootTable.startsWith("droid")))
|
||||
if (strLootTable == null || (!strLootTable.startsWith("npc") && (!strLootTable.startsWith("droid"))))
|
||||
{
|
||||
sendSystemMessage(player, new string_id("smuggler/messages", "contraband_not_possible"));
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user