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

Fix missing map parameter.

This commit is contained in:
Ahmed Charles 2022-04-23 00:12:42 -07:00 committed by Veden
parent 5dbf8c9574
commit 66b10883f7

View File

@ -646,7 +646,7 @@ local function onRocketLaunch(event)
if not map then
return
end
local chunk = getChunkByPosition(entity.position)
local chunk = getChunkByPosition(map, entity.position)
if (chunk ~= -1) then
local base = findNearbyBase(map, chunk)
base.rocketLaunched = base.rocketLaunched + 1