Compare commits

...

1 Commits

Author SHA1 Message Date
Aaron Suen ad8ba5a50b Simplify naming 1 year ago
  1. 12
      stones.lua

@ -14,17 +14,7 @@ local function reg(name, basename, basedef)
if minetest.registered_nodes[piecename] then return end if minetest.registered_nodes[piecename] then return end
local desc = basedef.description or name local desc = basedef.description or name
local nodeDesc local nodeDesc = desc .. " Go Stone"
local nameStone = string.match(desc, "(.*)stone$")
if nameStone then
nodeDesc = nameStone
elseif desc == "Stone" then
nodeDesc = "Go"
else
nodeDesc = desc
end
nodeDesc = nodeDesc .. " Stone"
minetest.register_node(":" .. piecename, { minetest.register_node(":" .. piecename, {
description = nodeDesc, description = nodeDesc,

Loading…
Cancel
Save