1
0
鏡像自 https://github.com/sys4-fr/server-nalc.git 已同步 2025-10-28 03:15:18 +01:00

Sent last global variables' patchs

- There is, from now on, no more known global variables error in the repository! (not 100% guaranteed)
此提交包含在:
LeMagnesium
2015-01-15 19:57:57 +01:00
父節點 5ce52db75b
當前提交 d7eeffa5b1
共有 3 個檔案被更改,包括 4 行新增3 行删除

查看文件

@@ -58,7 +58,7 @@ chesttools.may_use = function( pos, player )
local meta = minetest.get_meta( pos ); local meta = minetest.get_meta( pos );
local owner = meta:get_string( 'owner' ) local owner = meta:get_string( 'owner' )
-- the owner can access the chest -- the owner can access the chest
if( onwer == name or owner == "" ) then if( owner == name or owner == "" ) then
return true; return true;
end end
-- the shared function only kicks in if the area is protected -- the shared function only kicks in if the area is protected

查看文件

@@ -71,6 +71,7 @@ end
local p0 = {-2/16, -1/2, -2/16, 2/16, 1/2, 2/16} 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 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 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 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} 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", type = "fixed",
fixed = { fixed = {
p0,p1,p2,p3,p4,p5, p0,p1,p2,p3,p4,p5,
z2,z22,x1,x12, z2,z22,x1,x22,
bz1,bz11,bx1,bx11, bz1,bz11,bx1,bx11,
} }
}, },

查看文件

@@ -66,7 +66,7 @@ end
--Christmas easter egg --Christmas easter egg
minetest.register_on_mapgen_init( function() minetest.register_on_mapgen_init( function()
if skins then if minetest.get_modpath("skins") ~= nil then
skins.add("character_snow_man") skins.add("character_snow_man")
end end
end end