1
0
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:
Aaron Veden 2021-12-06 21:20:41 -08:00
parent b88e1abd91
commit d52de9e6c2
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84

View File

@ -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