mirror of
https://github.com/Oreolek/raconteur.git
synced 2024-05-17 08:18:17 +03:00
Fix bug with writers not writing when .options isn't present
This commit is contained in:
parent
23141e3b13
commit
4f41743da4
|
@ -191,7 +191,7 @@ RaconteurSituation.prototype.act = function (character, system, action) {
|
||||||
if (self.writers[ref] === undefined) {
|
if (self.writers[ref] === undefined) {
|
||||||
throw new Error("Tried to call undefined writer:" + ref);
|
throw new Error("Tried to call undefined writer:" + ref);
|
||||||
}
|
}
|
||||||
if ($('.options')) {
|
if ($('.options').length) {
|
||||||
system.writeBefore(
|
system.writeBefore(
|
||||||
markdown.render(
|
markdown.render(
|
||||||
self.writers[ref].fcall(self, character, system, action))
|
self.writers[ref].fcall(self, character, system, action))
|
||||||
|
|
Loading…
Reference in a new issue