diff options
author | Calinou <calinou@opmbx.org> | 2015-01-11 22:21:33 +0100 |
---|---|---|
committer | Calinou <calinou@opmbx.org> | 2015-01-11 22:21:33 +0100 |
commit | b5d62de9d812ac531011f50ee7d6081c5c3d0b6a (patch) | |
tree | 3d576dc6bc7332086d2765a530b6b65c28f9f40d /stairsplus | |
parent | 41bb46fb3668627ec2bbcb3d0c55899cabb8cf35 (diff) | |
download | moreblocks-b5d62de9d812ac531011f50ee7d6081c5c3d0b6a.tar.gz moreblocks-b5d62de9d812ac531011f50ee7d6081c5c3d0b6a.tar.bz2 moreblocks-b5d62de9d812ac531011f50ee7d6081c5c3d0b6a.zip |
Add licensing headers to all files, fix intllib global variable warnings.
Diffstat (limited to 'stairsplus')
-rw-r--r-- | stairsplus/API.md | 3 | ||||
-rw-r--r-- | stairsplus/aliases.lua | 8 | ||||
-rw-r--r-- | stairsplus/conversion.lua | 9 | ||||
-rw-r--r-- | stairsplus/init.lua | 9 | ||||
-rw-r--r-- | stairsplus/microblocks.lua | 16 | ||||
-rw-r--r-- | stairsplus/panels.lua | 16 | ||||
-rw-r--r-- | stairsplus/registrations.lua | 9 | ||||
-rw-r--r-- | stairsplus/slabs.lua | 16 | ||||
-rw-r--r-- | stairsplus/slopes.lua | 16 | ||||
-rw-r--r-- | stairsplus/stairs.lua | 16 |
10 files changed, 86 insertions, 32 deletions
diff --git a/stairsplus/API.md b/stairsplus/API.md index a98ec81..2db0f2b 100644 --- a/stairsplus/API.md +++ b/stairsplus/API.md @@ -1,6 +1,5 @@ API documentation for Stairs+ -================================ -- - - - - - - - - - - - - - - - +============================= * `stairsplus:register_all(modname, subname, recipeitem, fields)` Registers a stair, slab, panel, microblock, and any other types of diff --git a/stairsplus/aliases.lua b/stairsplus/aliases.lua index 9ad0e76..18561b1 100644 --- a/stairsplus/aliases.lua +++ b/stairsplus/aliases.lua @@ -1,3 +1,11 @@ +--[[ +====================================================================== +This file is part of More Blocks. + +Copyright (c) 2011-2015 Calinou and contributors. +Licensed under the zlib license. See LICENSE.md for more information. +====================================================================== +--]] local function register_stairsplus_alias(modname, origname, newname) minetest.register_alias(modname.. ":slab_" ..origname, "moreblocks:slab_" ..newname) diff --git a/stairsplus/conversion.lua b/stairsplus/conversion.lua index fda30c7..30c31ac 100644 --- a/stairsplus/conversion.lua +++ b/stairsplus/conversion.lua @@ -1,3 +1,12 @@ +--[[ +====================================================================== +This file is part of More Blocks. + +Copyright (c) 2011-2015 Calinou and contributors. +Licensed under the zlib license. See LICENSE.md for more information. +====================================================================== +--]] + -- Function to convert all stairs/slabs/etc nodes from -- inverted, wall, etc to regular + 6d facedir diff --git a/stairsplus/init.lua b/stairsplus/init.lua index 9717039..6ef5391 100644 --- a/stairsplus/init.lua +++ b/stairsplus/init.lua @@ -1,3 +1,12 @@ +--[[ +====================================================================== +This file is part of More Blocks. + +Copyright (c) 2011-2015 Calinou and contributors. +Licensed under the zlib license. See LICENSE.md for more information. +====================================================================== +--]] + -- Nodes will be called <modname>:{stair,slab,panel,micro}_<subname> local modpath = minetest.get_modpath("moreblocks").. "/stairsplus" diff --git a/stairsplus/microblocks.lua b/stairsplus/microblocks.lua index aac69ee..ccffa53 100644 --- a/stairsplus/microblocks.lua +++ b/stairsplus/microblocks.lua @@ -1,9 +1,13 @@ -local S -- Load translation library if intllib is installed: -if intllib then - S = intllib.Getter(minetest.get_current_modname()) -else - S = function(s) return s end -end +--[[ +====================================================================== +This file is part of More Blocks. + +Copyright (c) 2011-2015 Calinou and contributors. +Licensed under the zlib license. See LICENSE.md for more information. +====================================================================== +--]] + +local S = moreblocks.intllib -- Node will be called <modname>:micro_<subname> diff --git a/stairsplus/panels.lua b/stairsplus/panels.lua index f93f1cf..409197a 100644 --- a/stairsplus/panels.lua +++ b/stairsplus/panels.lua @@ -1,9 +1,13 @@ -local S -- Load translation library if intllib is installed: -if intllib then - S = intllib.Getter(minetest.get_current_modname()) -else - S = function(s) return s end -end +--[[ +====================================================================== +This file is part of More Blocks. + +Copyright (c) 2011-2015 Calinou and contributors. +Licensed under the zlib license. See LICENSE.md for more information. +====================================================================== +--]] + +local S = moreblocks.intllib -- Node will be called <modname>:panel_<subname> diff --git a/stairsplus/registrations.lua b/stairsplus/registrations.lua index aa77c72..4db376d 100644 --- a/stairsplus/registrations.lua +++ b/stairsplus/registrations.lua @@ -1,3 +1,12 @@ +--[[ +====================================================================== +This file is part of More Blocks. + +Copyright (c) 2011-2015 Calinou and contributors. +Licensed under the zlib license. See LICENSE.md for more information. +====================================================================== +--]] + local default_nodes = { -- Default stairs/slabs/panels/microblocks: "stone", "cobble", diff --git a/stairsplus/slabs.lua b/stairsplus/slabs.lua index 034df52..f2618ac 100644 --- a/stairsplus/slabs.lua +++ b/stairsplus/slabs.lua @@ -1,9 +1,13 @@ -local S -- Load translation library if intllib is installed: -if intllib then - S = intllib.Getter(minetest.get_current_modname()) -else - S = function(s) return s end -end +--[[ +====================================================================== +This file is part of More Blocks. + +Copyright (c) 2011-2015 Calinou and contributors. +Licensed under the zlib license. See LICENSE.md for more information. +====================================================================== +--]] + +local S = moreblocks.intllib -- Node will be called <modname>:slab_<subname> diff --git a/stairsplus/slopes.lua b/stairsplus/slopes.lua index 4ba7a2d..e973914 100644 --- a/stairsplus/slopes.lua +++ b/stairsplus/slopes.lua @@ -1,9 +1,13 @@ -local S -- Load translation library if intllib is installed: -if intllib then - S = intllib.Getter(minetest.get_current_modname()) -else - S = function(s) return s end -end +--[[ +====================================================================== +This file is part of More Blocks. + +Copyright (c) 2011-2015 Calinou and contributors. +Licensed under the zlib license. See LICENSE.md for more information. +====================================================================== +--]] + +local S = moreblocks.intllib local box_slope = { type = "fixed", diff --git a/stairsplus/stairs.lua b/stairsplus/stairs.lua index 1690d85..d3337ea 100644 --- a/stairsplus/stairs.lua +++ b/stairsplus/stairs.lua @@ -1,9 +1,13 @@ -local S -- Load translation library if intllib is installed: -if intllib then - S = intllib.Getter(minetest.get_current_modname()) -else - S = function(s) return s end -end +--[[ +====================================================================== +This file is part of More Blocks. + +Copyright (c) 2011-2015 Calinou and contributors. +Licensed under the zlib license. See LICENSE.md for more information. +====================================================================== +--]] + +local S = moreblocks.intllib -- Node will be called <modname>:stair_<subname> |