Merge branch 'master' into develop

This commit is contained in:
Filip Maj 2016-07-16 20:04:49 -04:00
commit 5b7ad2364b
2 changed files with 5 additions and 5 deletions

View File

@ -336,7 +336,7 @@ namespace FFXIVClassic_Map_Server.Actors
if (File.Exists(String.Format("./scripts/unique/{0}/{1}/{2}.lua", zone.zoneName, className, uniqueIdentifier))) if (File.Exists(String.Format("./scripts/unique/{0}/{1}/{2}.lua", zone.zoneName, className, uniqueIdentifier)))
child = LuaEngine.LoadScript(String.Format("./scripts/unique/{0}/{1}/{2}.lua", zone.zoneName, className, uniqueIdentifier)); child = LuaEngine.LoadScript(String.Format("./scripts/unique/{0}/{1}/{2}.lua", zone.zoneName, className, uniqueIdentifier));
if (parent == null && child == null) if (parent == null)
{ {
LuaEngine.SendError(player, String.Format("ERROR: Could not find script for actor {0}.", GetName())); LuaEngine.SendError(player, String.Format("ERROR: Could not find script for actor {0}.", GetName()));
return null; return null;
@ -347,7 +347,7 @@ namespace FFXIVClassic_Map_Server.Actors
if (child != null && !child.Globals.Get("onEventStarted").IsNil()) if (child != null && !child.Globals.Get("onEventStarted").IsNil())
coroutine = child.CreateCoroutine(child.Globals["onEventStarted"]).Coroutine; coroutine = child.CreateCoroutine(child.Globals["onEventStarted"]).Coroutine;
else if (!parent.Globals.Get("onEventStarted").IsNil()) else if (parent.Globals.Get("onEventStarted") != null && !parent.Globals.Get("onEventStarted").IsNil())
coroutine = parent.CreateCoroutine(parent.Globals["onEventStarted"]).Coroutine; coroutine = parent.CreateCoroutine(parent.Globals["onEventStarted"]).Coroutine;
else else
return null; return null;

View File

@ -1155,7 +1155,7 @@ namespace FFXIVClassic_Map_Server.Actors
} }
catch (ScriptRuntimeException e) catch (ScriptRuntimeException e)
{ {
Program.Log.Error("[LUA] {0}", e.Message); Program.Log.Error("[LUA] {0}", e.DecoratedMessage);
EndEvent(); EndEvent();
} }
} }
@ -1176,7 +1176,7 @@ namespace FFXIVClassic_Map_Server.Actors
} }
catch (ScriptRuntimeException e) catch (ScriptRuntimeException e)
{ {
Program.Log.Error("[LUA] {0}", e.Message); Program.Log.Error("[LUA] {0}", e.DecoratedMessage);
EndEvent(); EndEvent();
} }
} }
@ -1201,7 +1201,7 @@ namespace FFXIVClassic_Map_Server.Actors
} }
catch (ScriptRuntimeException e) catch (ScriptRuntimeException e)
{ {
Program.Log.Error("[LUA] {0}", e.Message); Program.Log.Error("[LUA] {0}", e.DecoratedMessage);
EndEvent(); EndEvent();
} }
} }