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:
parent
9ea16e6a82
commit
758ee7c0fc
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user