mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-07-19 16:10:24 +02:00
Reverted moreblocks and maptools updates
This commit is contained in:
21
mods/moreblocks/stairsplus/stairs.lua
Normal file → Executable file
21
mods/moreblocks/stairsplus/stairs.lua
Normal file → Executable file
@ -1,11 +1,10 @@
|
||||
--[[
|
||||
More Blocks: stair definitions
|
||||
|
||||
Copyright (c) 2011-2015 Calinou and contributors.
|
||||
Licensed under the zlib license. See LICENSE.md for more information.
|
||||
--]]
|
||||
|
||||
local S = moreblocks.intllib
|
||||
local S -- Load translation library if intllib is installed:
|
||||
if (minetest.get_modpath("intllib")) then
|
||||
dofile(minetest.get_modpath("intllib").."/intllib.lua")
|
||||
S = intllib.Getter(minetest.get_current_modname())
|
||||
else
|
||||
S = function(s) return s end
|
||||
end
|
||||
|
||||
-- Node will be called <modname>:stair_<subname>
|
||||
|
||||
@ -117,11 +116,11 @@ function stairsplus:register_stair(modname, subname, recipeitem, fields)
|
||||
end
|
||||
def.description = desc
|
||||
if fields.drop then
|
||||
def.drop = modname .. ":stair_" .. fields.drop .. alternate
|
||||
def.drop = modname.. ":stair_" ..fields.drop..alternate
|
||||
end
|
||||
minetest.register_node(":" .. modname .. ":stair_" .. subname .. alternate, def)
|
||||
minetest.register_node(":" ..modname.. ":stair_" ..subname..alternate, def)
|
||||
end
|
||||
minetest.register_alias("stairs:stair_" .. subname, modname .. ":stair_" .. subname)
|
||||
minetest.register_alias(":stairs:stair_" ..subname, modname.. ":stair_" ..subname)
|
||||
|
||||
-- Some saw-less recipes:
|
||||
|
||||
|
Reference in New Issue
Block a user