Fix broken dojo scripts since introduction of MapId constants

This commit is contained in:
P0nk
2022-08-02 16:31:15 +02:00
parent 563d3033b9
commit 8d213e4d6e
4 changed files with 7 additions and 7 deletions

View File

@@ -155,8 +155,8 @@ public class NPCScriptManager extends AbstractScriptManager {
c.sendPacket(PacketCreator.enableActions());
}
return true;
} catch (final Exception ute) {
log.error("Error starting NPC script: {}", npc);
} catch (Exception e) {
log.error("Error starting NPC script: {}", npc, e);
dispose(c);
return false;

View File

@@ -71,7 +71,7 @@ public class PortalScriptManager extends AbstractScriptManager {
return script.enter(new PortalPlayerInteraction(c, portal));
}
} catch (Exception e) {
log.warn("Portal script {}", portal.getScriptName(), e);
log.warn("Portal script error in: {}", portal.getScriptName(), e);
}
return false;
}