summaryrefslogtreecommitdiff
path: root/lrfurn
diff options
context:
space:
mode:
Diffstat (limited to 'lrfurn')
-rw-r--r--lrfurn/armchairs.lua5
-rw-r--r--lrfurn/init.lua2
-rw-r--r--lrfurn/longsofas.lua3
-rw-r--r--lrfurn/sofas.lua3
4 files changed, 4 insertions, 9 deletions
diff --git a/lrfurn/armchairs.lua b/lrfurn/armchairs.lua
index e471267..4fdb512 100644
--- a/lrfurn/armchairs.lua
+++ b/lrfurn/armchairs.lua
@@ -13,7 +13,7 @@ minetest.register_node("lrfurn:armchair", {
drawtype = "mesh",
mesh = "lrfurn_armchair.obj",
tiles = {
- "lrfurn_upholstery.png",
+ "lrfurn_upholstery.png",
{ name = "lrfurn_sofa_bottom.png", color = 0xffffffff }
},
paramtype = "light",
@@ -26,7 +26,6 @@ minetest.register_node("lrfurn:armchair", {
after_place_node = lrfurn.fix_rotation,
after_dig_node = unifieddyes.after_dig_node,
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
- local itemname = itemstack:get_name()
if not clicker:is_player() then
return itemstack
end
@@ -67,7 +66,7 @@ end
minetest.register_lbm({
name = "lrfurn:convert_armchairs",
label = "Convert lrfurn armchairs to use param2 color",
- run_at_every_load = true,
+ run_at_every_load = false,
nodenames = lrfurn.old_static_armchairs,
action = function(pos, node)
local name = node.name
diff --git a/lrfurn/init.lua b/lrfurn/init.lua
index 6434136..1074482 100644
--- a/lrfurn/init.lua
+++ b/lrfurn/init.lua
@@ -1,6 +1,4 @@
-local S = homedecor_i18n.gettext
-
lrfurn = {}
screwdriver = screwdriver or {}
diff --git a/lrfurn/longsofas.lua b/lrfurn/longsofas.lua
index b5216c2..3aec132 100644
--- a/lrfurn/longsofas.lua
+++ b/lrfurn/longsofas.lua
@@ -39,7 +39,6 @@ minetest.register_node("lrfurn:longsofa", {
end,
after_dig_node = unifieddyes.after_dig_node,
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
- local itemname = itemstack:get_name()
if not clicker:is_player() then
return itemstack
end
@@ -79,7 +78,7 @@ end
minetest.register_lbm({
name = "lrfurn:convert_longsofas",
label = "Convert lrfurn long sofas to use param2 color",
- run_at_every_load = true,
+ run_at_every_load = false,
nodenames = lrfurn.old_static_longsofas,
action = function(pos, node)
local name = node.name
diff --git a/lrfurn/sofas.lua b/lrfurn/sofas.lua
index 57d4904..6bdc317 100644
--- a/lrfurn/sofas.lua
+++ b/lrfurn/sofas.lua
@@ -39,7 +39,6 @@ minetest.register_node("lrfurn:sofa", {
end,
after_dig_node = unifieddyes.after_dig_node,
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
- local itemname = itemstack:get_name()
if not clicker:is_player() then
return itemstack
end
@@ -79,7 +78,7 @@ end
minetest.register_lbm({
name = "lrfurn:convert_sofas",
label = "Convert lrfurn short sofas to use param2 color",
- run_at_every_load = true,
+ run_at_every_load = false,
nodenames = lrfurn.old_static_sofas,
action = function(pos, node)
local name = node.name