From d0011c48d6a7b638116a667eec37be1612f0d359 Mon Sep 17 00:00:00 2001 From: Cekis Date: Thu, 19 Jan 2017 17:11:26 +0000 Subject: [PATCH] Fixed issue with Bestine Capitol building Terminals and not being able to search them. --- .../game/script/city/bestine/terminal_items.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/sku.0/sys.server/compiled/game/script/city/bestine/terminal_items.java b/sku.0/sys.server/compiled/game/script/city/bestine/terminal_items.java index 09a8475ff..7c59af395 100755 --- a/sku.0/sys.server/compiled/game/script/city/bestine/terminal_items.java +++ b/sku.0/sys.server/compiled/game/script/city/bestine/terminal_items.java @@ -63,13 +63,12 @@ public class terminal_items extends script.base_script public int OnObjectMenuRequest(obj_id self, obj_id player, menu_info mi) throws InterruptedException { String template = getStringObjVar(self, "disk"); - int stringCheck = template.indexOf("history"); - if (stringCheck < 0) + if(template != null && template.indexOf("history") >= 0){ + return SCRIPT_CONTINUE; + } + if (canSearch(self, player)) { - if (canSearch(self, player)) - { - mi.addRootMenu(menu_info_types.ITEM_USE, new string_id(CONVO, "download")); - } + mi.addRootMenu(menu_info_types.ITEM_USE, new string_id(CONVO, "download")); } return SCRIPT_CONTINUE; }