mirror of
https://github.com/veden/Rampant.git
synced 2025-01-30 04:30:52 +02:00
fixed surfaceTileChange not using chunk in keyvalue pair
This commit is contained in:
parent
b88e1abd91
commit
d52de9e6c2
@ -584,7 +584,7 @@ local function onSurfaceTileChange(event)
|
||||
local chunk = getChunkByPosition(map, position)
|
||||
|
||||
if (chunk ~= -1) then
|
||||
map.chunkToPassScan[chunk.id] = true
|
||||
map.chunkToPassScan[chunk.id] = chunk
|
||||
else
|
||||
local x,y = positionToChunkXY(position)
|
||||
local addMe = true
|
||||
@ -613,7 +613,7 @@ local function onSurfaceTileChange(event)
|
||||
local chunk = getChunkByPosition(map, position)
|
||||
|
||||
if (chunk ~= -1) then
|
||||
map.chunkToPassScan[chunk.id] = true
|
||||
map.chunkToPassScan[chunk.id] = chunk
|
||||
else
|
||||
local x,y = positionToChunkXY(position)
|
||||
local addMe = true
|
||||
|
Loading…
x
Reference in New Issue
Block a user