summaryrefslogtreecommitdiff
path: root/homedecor/bedroom.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-02-16 17:05:50 -0500
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-02-16 17:05:50 -0500
commit784ba2e68ca534b4355ecc26509e53c214f13977 (patch)
tree034367a2741bad3e2b6fa2727dd86b8ece387cc2 /homedecor/bedroom.lua
parentc66f03b6fe2fc6c4d9d4c05be5e61fc1b27c1327 (diff)
downloaddreambuilder_modpack-784ba2e68ca534b4355ecc26509e53c214f13977.tar
dreambuilder_modpack-784ba2e68ca534b4355ecc26509e53c214f13977.tar.gz
dreambuilder_modpack-784ba2e68ca534b4355ecc26509e53c214f13977.tar.bz2
dreambuilder_modpack-784ba2e68ca534b4355ecc26509e53c214f13977.tar.xz
dreambuilder_modpack-784ba2e68ca534b4355ecc26509e53c214f13977.zip
update several mods and add a few
updated: blox, bobblocks, castle, homedecor, coloredwood, ilights, stainedglass, unifiedbricks added: cheapie's rgblightstone, digistuff, unifiedmesecons, and solidcolor
Diffstat (limited to 'homedecor/bedroom.lua')
-rw-r--r--homedecor/bedroom.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/homedecor/bedroom.lua b/homedecor/bedroom.lua
index 8e29ee3..1a7e42f 100644
--- a/homedecor/bedroom.lua
+++ b/homedecor/bedroom.lua
@@ -228,12 +228,14 @@ end
minetest.register_lbm({
name = "homedecor:convert_beds",
label = "Convert homedecor static bed nodes to use param2 color",
- run_at_every_load = true,
+ run_at_every_load = false,
nodenames = homedecor.old_bed_nodes,
action = function(pos, node)
local name = node.name
local color = string.sub(name, string.find(name, "_") + 1)
- local color = string.sub(color, 1, string.find(color, "_", -10) - 1) -- -10 puts us near the end of the color field
+
+ -- -10 puts us near the end of the color field
+ color = string.sub(color, 1, string.find(color, "_", -10) - 1)
if color == "darkgrey" then
color = "dark_grey"