summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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