From dde4d34ab465f5acb5685e127eb68444b4f26beb Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Thu, 15 Jan 2015 19:57:57 +0100 Subject: [PATCH] Sent last global variables' patchs - There is, from now on, no more known global variables error in the repository! (not 100% guaranteed) --- mods/chesttools/init.lua | 2 +- mods/fences/init.lua | 3 ++- mods/snow/src/nodes.lua | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/mods/chesttools/init.lua b/mods/chesttools/init.lua index e2dcb6b2..fa219361 100755 --- a/mods/chesttools/init.lua +++ b/mods/chesttools/init.lua @@ -58,7 +58,7 @@ chesttools.may_use = function( pos, player ) local meta = minetest.get_meta( pos ); local owner = meta:get_string( 'owner' ) -- the owner can access the chest - if( onwer == name or owner == "" ) then + if( owner == name or owner == "" ) then return true; end -- the shared function only kicks in if the area is protected diff --git a/mods/fences/init.lua b/mods/fences/init.lua index 82c8da9e..8ab786c5 100755 --- a/mods/fences/init.lua +++ b/mods/fences/init.lua @@ -71,6 +71,7 @@ end local p0 = {-2/16, -1/2, -2/16, 2/16, 1/2, 2/16} local p1 = {-2/16, 1/2, -2/16, -2/16, 1/2+8/16, -2/16} local p2 = {-2/16, 1/2, 2/16, -2/16, 1/2+8/16, 2/16} +local p3 = {0, 0, 0, 0, 0, 0} local p4 = {2/16, 1/2, -2/16, 2/16, 1/2+8/16, -2/16} local p5 = {2/16, 1/2, 2/16, 2/16, 1/2+8/16, 2/16} @@ -532,7 +533,7 @@ minetest.register_node("fences:fence_wood_13", { --right(2)+top(11)=13 type = "fixed", fixed = { p0,p1,p2,p3,p4,p5, - z2,z22,x1,x12, + z2,z22,x1,x22, bz1,bz11,bx1,bx11, } }, diff --git a/mods/snow/src/nodes.lua b/mods/snow/src/nodes.lua index cd6d02f8..a6113c20 100755 --- a/mods/snow/src/nodes.lua +++ b/mods/snow/src/nodes.lua @@ -66,7 +66,7 @@ end --Christmas easter egg minetest.register_on_mapgen_init( function() - if skins then + if minetest.get_modpath("skins") ~= nil then skins.add("character_snow_man") end end