Change descriptions to use plural for 2x2 drawers

This commit is contained in:
LNJ 2017-04-05 13:29:00 +02:00
parent ad3bbe8664
commit f1156cc1da
No known key found for this signature in database
GPG Key ID: 69268DBD835B6B0B
2 changed files with 4 additions and 3 deletions

@ -58,7 +58,7 @@ dofile(modpath .. "/lua/api.lua")
-- --
drawers.register_drawer("drawers:wood", { drawers.register_drawer("drawers:wood", {
description = "Wooden Drawer", description = "Wooden",
tiles1 = {"drawers_wood.png", "drawers_wood.png", "drawers_wood.png", tiles1 = {"drawers_wood.png", "drawers_wood.png", "drawers_wood.png",
"drawers_wood.png", "drawers_wood.png", "drawers_wood_front_1.png"}, "drawers_wood.png", "drawers_wood.png", "drawers_wood_front_1.png"},
tiles4 = {"drawers_wood.png", "drawers_wood.png", "drawers_wood.png", tiles4 = {"drawers_wood.png", "drawers_wood.png", "drawers_wood.png",

@ -120,7 +120,7 @@ function drawers.drawer_insert_object(pos, node, stack, direction)
end end
function drawers.register_drawer(name, def) function drawers.register_drawer(name, def)
def.description = def.description or "Drawer" def.description = def.description or "Wooden"
def.drawtype = "nodebox" def.drawtype = "nodebox"
def.node_box = {type = "fixed", fixed = drawers.node_box_simple} def.node_box = {type = "fixed", fixed = drawers.node_box_simple}
def.collision_box = {type = "regular"} def.collision_box = {type = "regular"}
@ -154,6 +154,7 @@ function drawers.register_drawer(name, def)
-- normal drawer 1x1 = 1 -- normal drawer 1x1 = 1
def1 = table.copy(def) def1 = table.copy(def)
def1.description = def.description .. " Drawer"
def1.tiles = def.tiles or def.tiles1 def1.tiles = def.tiles or def.tiles1
def1.tiles1 = nil def1.tiles1 = nil
def1.tiles4 = nil def1.tiles4 = nil
@ -163,7 +164,7 @@ function drawers.register_drawer(name, def)
-- 2x2 = 4 -- 2x2 = 4
def4 = table.copy(def) def4 = table.copy(def)
def4.description = def4.description .. " (2x2)" def4.description = def.description .. " Drawers (2x2)"
def4.tiles = def.tiles4 def4.tiles = def.tiles4
def4.tiles1 = nil def4.tiles1 = nil
def4.tiles4 = nil def4.tiles4 = nil