mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-23 00:20:17 +01:00
respond to keyword_interact live keyword change
This commit is contained in:
parent
a79c752c40
commit
c19841064b
@ -1,3 +1,4 @@
|
|||||||
default
|
default
|
||||||
intllib?
|
intllib?
|
||||||
screwdriver?
|
screwdriver?
|
||||||
|
keyword_interact?
|
||||||
|
@ -536,6 +536,7 @@ signs_lib.update_sign = function(pos, fields, owner)
|
|||||||
|
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
local stored_text = meta:get_string("text") or ""
|
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 then -- ...we're editing the sign.
|
||||||
if fields.text and string.find(dump(fields.text), "@KEYWORD") then
|
if fields.text and string.find(dump(fields.text), "@KEYWORD") then
|
||||||
|
Loading…
Reference in New Issue
Block a user