summaryrefslogtreecommitdiff
path: root/homedecor
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-02-02 10:26:57 -0500
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-02-02 10:26:57 -0500
commitc699d3082337bcec6cdf043fa0aa185ae9e0d847 (patch)
tree9d450ef3a683b9cdc4b1ded04cbfc6a6834673ba /homedecor
parentc3ea59fcd8adcce2e52fa705228260687593ca85 (diff)
downloaddreambuilder_modpack-c699d3082337bcec6cdf043fa0aa185ae9e0d847.tar
dreambuilder_modpack-c699d3082337bcec6cdf043fa0aa185ae9e0d847.tar.gz
dreambuilder_modpack-c699d3082337bcec6cdf043fa0aa185ae9e0d847.tar.bz2
dreambuilder_modpack-c699d3082337bcec6cdf043fa0aa185ae9e0d847.tar.xz
dreambuilder_modpack-c699d3082337bcec6cdf043fa0aa185ae9e0d847.zip
update homedecor
Diffstat (limited to 'homedecor')
-rw-r--r--homedecor/bedroom.lua1
-rw-r--r--homedecor/handlers/expansion.lua2
-rw-r--r--homedecor/lighting.lua2
3 files changed, 3 insertions, 2 deletions
diff --git a/homedecor/bedroom.lua b/homedecor/bedroom.lua
index 92e0bc5..79c573b 100644
--- a/homedecor/bedroom.lua
+++ b/homedecor/bedroom.lua
@@ -256,6 +256,7 @@ minetest.register_lbm({
local paletteidx = unifieddyes.getpaletteidx("unifieddyes:"..color, "wallmounted")
local old_fdir = math.floor(node.param2 % 32)
local new_fdir = 3
+ local new_name
if old_fdir == 0 then
new_fdir = 3
diff --git a/homedecor/handlers/expansion.lua b/homedecor/handlers/expansion.lua
index 705f313..b3e78c8 100644
--- a/homedecor/handlers/expansion.lua
+++ b/homedecor/handlers/expansion.lua
@@ -171,7 +171,7 @@ function homedecor.stack_sideways(itemstack, placer, pointed_thing, node1, node2
if not pos then return itemstack end
local fdir = minetest.dir_to_facedir(placer:get_look_dir())
- local fdir_transform = dir and homedecor.fdir_to_right or homedecor.dir_to_fwd
+ local fdir_transform = dir and homedecor.fdir_to_right or homedecor.fdir_to_fwd
local pos2 = { x = pos.x + fdir_transform[fdir+1][1], y=pos.y, z = pos.z + fdir_transform[fdir+1][2] }
diff --git a/homedecor/lighting.lua b/homedecor/lighting.lua
index 48e7686..5b29338 100644
--- a/homedecor/lighting.lua
+++ b/homedecor/lighting.lua
@@ -644,7 +644,7 @@ minetest.register_lbm({
local old_node = node.name
local old_fdir
local new_node = newname
- local new_fdir
+ local new_fdir = 1
local param2
if string.find(name, "glowlight") then