1
0
mirror of https://github.com/veden/Rampant.git synced 2025-03-17 20:58:35 +02:00

added remaining onchunkgenerated tick property

This commit is contained in:
Aaron Veden 2021-12-04 12:03:54 -08:00
parent 9ea16e6a82
commit 758ee7c0fc
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84

View File

@ -684,6 +684,7 @@ local function onEnemyBaseBuild(event)
local x,y = positionToChunkXY(entity.position)
onChunkGenerated({
surface = entity.surface,
tick = event.tick,
area = {
left_top = {
x = x,
@ -723,6 +724,7 @@ local function onSurfaceTileChange(event)
local chunkXY = {x=x,y=y}
chunks[#chunks+1] = chunkXY
onChunkGenerated({area = { left_top = chunkXY },
tick = event.tick,
surface = surface})
end
end
@ -751,6 +753,7 @@ local function onSurfaceTileChange(event)
local chunkXY = {x=x,y=y}
chunks[#chunks+1] = chunkXY
onChunkGenerated({area = { left_top = chunkXY },
tick = event.tick,
surface = surface})
end
end