1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-07-19 08:00:25 +02:00

Reverted moreblocks and maptools updates

This commit is contained in:
LeMagnesium
2015-01-15 21:06:57 +01:00
parent c430709474
commit 195e9ccee5
103 changed files with 756 additions and 1624 deletions

21
mods/moreblocks/stairsplus/slabs.lua Normal file → Executable file
View File

@ -1,11 +1,10 @@
--[[
More Blocks: slab 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>:slab_<subname>
@ -76,11 +75,11 @@ function stairsplus:register_slab(modname, subname, recipeitem, fields)
end
def.description = desc
if fields.drop then
def.drop = modname.. ":slab_" .. fields.drop .. alternate
def.drop = modname.. ":slab_" ..fields.drop..alternate
end
minetest.register_node(":" .. modname .. ":slab_" .. subname .. alternate, def)
minetest.register_node(":" ..modname.. ":slab_" ..subname..alternate, def)
end
minetest.register_alias("stairs:slab_" .. subname, modname .. ":slab_" .. subname)
minetest.register_alias("stairs:slab_" ..subname, modname.. ":slab_" ..subname)
-- Some saw-less recipes: