diff options
Diffstat (limited to 'plasmascreen/init.lua')
-rw-r--r-- | plasmascreen/init.lua | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/plasmascreen/init.lua b/plasmascreen/init.lua index 839fa1f..109e418 100644 --- a/plasmascreen/init.lua +++ b/plasmascreen/init.lua @@ -1,7 +1,10 @@ + +local S = homedecor_i18n.gettext + screwdriver = screwdriver or {} minetest.register_node("plasmascreen:stand", { - description = "Plasma Screen TV Stand", + description = S("Plasma Screen TV Stand"), tiles = {"plasmascreen_back.png"}, paramtype = "light", paramtype2 = "facedir", @@ -85,7 +88,7 @@ local function checkwall(pos) end local node5 = minetest.get_node({x=pos.x+dxr, y=pos.y+1, z=pos.z+dzr}) - if not node5 or not minetest.registered_nodes[node5.name] + if not node5 or not minetest.registered_nodes[node5.name] or not minetest.registered_nodes[node5.name].buildable_to then return false end @@ -94,7 +97,7 @@ local function checkwall(pos) end minetest.register_node("plasmascreen:tv", { - description = "Plasma TV", + description = S("Plasma TV"), drawtype = "mesh", mesh = "plasmascreen_tv.obj", tiles = { @@ -130,7 +133,7 @@ minetest.register_node("plasmascreen:tv", { }) minetest.register_node("plasmascreen:tv_off", { - description = "Plasma TV (off)", + description = S("Plasma TV (off)"), drawtype = "mesh", mesh = "plasmascreen_tv.obj", tiles = { |