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
local desc = basedef.description or name
local nodeDesc
local nameStone = string.match(desc, "(.*)stone$")
if nameStone then
nodeDesc = nameStone
elseif desc == "Stone" then
nodeDesc = "Go"
else
nodeDesc = desc
end
nodeDesc = nodeDesc .. " Stone"
local nodeDesc = desc .. " Go Stone"
minetest.register_node(":" .. piecename, {
description = nodeDesc,

Loading…
Cancel
Save