From 66b10883f706bb07e9660a2d826b6f0b4fcde200 Mon Sep 17 00:00:00 2001 From: Ahmed Charles Date: Sat, 23 Apr 2022 00:12:42 -0700 Subject: [PATCH] Fix missing map parameter. --- control.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control.lua b/control.lua index 7bf4713..5b6e672 100644 --- a/control.lua +++ b/control.lua @@ -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