Move an errant bracket into the correct place.

This commit is contained in:
Geit
2020-09-22 12:49:04 -04:00
parent 7ef9f92822
commit a1bada5ab6

View File

@@ -22,9 +22,10 @@ public class no_trade_removable extends script.base_script {
public static final string_id SID_ITEM_NOT_INVENTORY = new string_id("sarlacc_minigame", "item_not_inventory");
public static final string_id SID_ITEM_NOT_OWNER = new string_id("base_player", "item_not_owner");
public static final string_id SID_ITEM_MADE_TRADABLE = new string_id("system_msg", "item_made_tradable");
public static final String SCRIPT_NAME = "item.special.no_trade_removable";
public int OnObjectMenuRequest(obj_id self, obj_id player, menu_info mi) throws InterruptedException {
if ((getOwner(self) == player || isGod(player) && hasObjVar(self, "noTrade"))
if ((getOwner(self) == player || isGod(player)) && hasObjVar(self, "noTrade")
&& utils.getContainingPlayer(self) == player) {
mi.addRootMenu(RADIAL_MENU_ENTRY, REMOVE_NO_TRADE);
}