From b5d62de9d812ac531011f50ee7d6081c5c3d0b6a Mon Sep 17 00:00:00 2001 From: Calinou Date: Sun, 11 Jan 2015 22:21:33 +0100 Subject: Add licensing headers to all files, fix intllib global variable warnings. --- stairsplus/API.md | 3 +-- stairsplus/aliases.lua | 8 ++++++++ stairsplus/conversion.lua | 9 +++++++++ stairsplus/init.lua | 9 +++++++++ stairsplus/microblocks.lua | 16 ++++++++++------ stairsplus/panels.lua | 16 ++++++++++------ stairsplus/registrations.lua | 9 +++++++++ stairsplus/slabs.lua | 16 ++++++++++------ stairsplus/slopes.lua | 16 ++++++++++------ stairsplus/stairs.lua | 16 ++++++++++------ 10 files changed, 86 insertions(+), 32 deletions(-) (limited to 'stairsplus') 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 :{stair,slab,panel,micro}_ 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 :micro_ 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 :panel_ 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 :slab_ 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 :stair_ -- cgit v1.2.3