summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLNJ <git@lnj.li>2017-04-05 13:29:00 +0200
committerLNJ <git@lnj.li>2017-04-05 14:53:16 +0200
commitf1156cc1da2f61d3996878213d5a3b358ce7ec57 (patch)
treeb6d623f57188416fd1b1b52694c3e07297de737e
parentad3bbe8664199c1b27eaece422f23784512e5d05 (diff)
Change descriptions to use plural for 2x2 drawers
-rwxr-xr-xinit.lua2
-rwxr-xr-xlua/api.lua5
2 files changed, 4 insertions, 3 deletions
diff --git a/init.lua b/init.lua
index b15f828..cd15546 100755
--- a/init.lua
+++ b/init.lua
@@ -58,7 +58,7 @@ dofile(modpath .. "/lua/api.lua")
--
drawers.register_drawer("drawers:wood", {
- description = "Wooden Drawer",
+ description = "Wooden",
tiles1 = {"drawers_wood.png", "drawers_wood.png", "drawers_wood.png",
"drawers_wood.png", "drawers_wood.png", "drawers_wood_front_1.png"},
tiles4 = {"drawers_wood.png", "drawers_wood.png", "drawers_wood.png",
diff --git a/lua/api.lua b/lua/api.lua
index af91e0f..ba0550c 100755
--- a/lua/api.lua
+++ b/lua/api.lua
@@ -120,7 +120,7 @@ function drawers.drawer_insert_object(pos, node, stack, direction)
end
function drawers.register_drawer(name, def)
- def.description = def.description or "Drawer"
+ def.description = def.description or "Wooden"
def.drawtype = "nodebox"
def.node_box = {type = "fixed", fixed = drawers.node_box_simple}
def.collision_box = {type = "regular"}
@@ -154,6 +154,7 @@ function drawers.register_drawer(name, def)
-- normal drawer 1x1 = 1
def1 = table.copy(def)
+ def1.description = def.description .. " Drawer"
def1.tiles = def.tiles or def.tiles1
def1.tiles1 = nil
def1.tiles4 = nil
@@ -163,7 +164,7 @@ function drawers.register_drawer(name, def)
-- 2x2 = 4
def4 = table.copy(def)
- def4.description = def4.description .. " (2x2)"
+ def4.description = def.description .. " Drawers (2x2)"
def4.tiles = def.tiles4
def4.tiles1 = nil
def4.tiles4 = nil