From c19841064b164a8570dbcd0343620388e71d0580 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Fri, 26 Jun 2015 05:55:52 -0400 Subject: [PATCH] respond to keyword_interact live keyword change --- signs_lib/depends.txt | 1 + signs_lib/init.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/signs_lib/depends.txt b/signs_lib/depends.txt index c0dd3b0..abb8bd5 100644 --- a/signs_lib/depends.txt +++ b/signs_lib/depends.txt @@ -1,3 +1,4 @@ default intllib? screwdriver? +keyword_interact? diff --git a/signs_lib/init.lua b/signs_lib/init.lua index ee00b7d..acf8807 100644 --- a/signs_lib/init.lua +++ b/signs_lib/init.lua @@ -536,6 +536,7 @@ signs_lib.update_sign = function(pos, fields, owner) local meta = minetest.get_meta(pos) local stored_text = meta:get_string("text") or "" + current_keyword = mki_interact_keyword or current_keyword if fields then -- ...we're editing the sign. if fields.text and string.find(dump(fields.text), "@KEYWORD") then