walbot: add proper restrictions of the inner wall

master
cora 2021-08-31 21:56:58 +02:00
parent edc0a4bcf3
commit b097b98be4
1 changed files with 4 additions and 4 deletions

View File

@ -68,7 +68,7 @@ local function iwall_node(pos)
if pos.y>80 or pos.y < -2 then return false end
local dir=ws.getdir()
if dir == "north" then
if pos.z == 973 then
if pos.z == 973 and pos.x < -1264 and pos.x > -1444 then
if pos.y % 2 == 0 then
if pos .x % 2 == 0 then
return "mcl_core:obsidian"
@ -85,7 +85,7 @@ local function iwall_node(pos)
end
elseif dir == "east" then
if pos.x == -1264 then
if pos.x == -1264 and pos.z > 801 and pos.z < 973 then
if pos.y % 2 == 0 then
if pos .z % 2 == 0 then
return "mcl_core:stonebrick"
@ -101,7 +101,7 @@ local function iwall_node(pos)
end
end
elseif dir == "south" then
if pos.z == 801 then
if pos.z == 801 and pos.x < -1264 and pos.x > -1444 then
if pos.y % 2 == 0 then
if pos .x % 2 == 0 then
return "mcl_core:obsidian"
@ -117,7 +117,7 @@ local function iwall_node(pos)
end
end
elseif dir == "west" then
if pos.x == -1444 then
if pos.x == -1444 and pos.z > 801 and pos.z < 973 then
if pos.y % 2 == 0 then
if pos .z % 2 == 0 then
return "mcl_core:stonebrick"