diff --git a/assets/game/basePlayer.lua b/assets/game/basePlayer.lua index 3d158ba7..1cd3e1a5 100644 --- a/assets/game/basePlayer.lua +++ b/assets/game/basePlayer.lua @@ -846,7 +846,7 @@ local function dump(self,L,t,path) s=s..(s=='{' and k or ','..k)..v end else - LOG("Filtered: "..nPath) + -- print("Filtered: "..nPath) end end return s..'}' diff --git a/assets/game/brikPlayer.lua b/assets/game/brikPlayer.lua index e2f96440..c4b7e03f 100644 --- a/assets/game/brikPlayer.lua +++ b/assets/game/brikPlayer.lua @@ -1367,10 +1367,10 @@ function BP:setField(arg) for y=1,#arg do for x=1,w do if f[y][x] then - if f[y] and f[y][x-1] then f[y][x].conn[f[y][x-1]]=0 end - if f[y] and f[y][x+1] then f[y][x].conn[f[y][x+1]]=0 end - if f[y-1] and f[y-1][x] then f[y][x].conn[f[y-1][x]]=0 end - if f[y+1] and f[y+1][x] then f[y][x].conn[f[y+1][x]]=0 end + if f[y] and f[y][x-1] then f[y][x].conn[f[y][x-1].cid]=0 end + if f[y] and f[y][x+1] then f[y][x].conn[f[y][x+1].cid]=0 end + if f[y-1] and f[y-1][x] then f[y][x].conn[f[y-1][x].cid]=0 end + if f[y+1] and f[y+1][x] then f[y][x].conn[f[y+1][x].cid]=0 end end end end