1
0
mirror of https://github.com/veden/Rampant.git synced 2024-12-30 21:19:46 +02:00

removed extra unregisterResource call in onMined

This commit is contained in:
Aaron Veden 2021-12-06 20:43:21 -08:00
parent d207dba5df
commit d68c3c93d6
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84
2 changed files with 2 additions and 7 deletions

View File

@ -61,6 +61,7 @@ Date: 23. 11. 2021
- Fixed Rampant in-memory map visualization tool for debugging
- Added debug mod settings for showing enemy structures being upgraded in place
- Moved config methods into relevant code files
- Removed unnecessary unregisterResource called on onMine event
Removals:
- Removed map deadzones as they were breaking regional bases
- Removed make building safe mod option, now each individual toggle works as people are expecting

View File

@ -331,13 +331,7 @@ local function onMine(event)
if not map then
return
end
if (entity.type == "resource") and (entity.force.name == "neutral") then
if (entity.amount == 0) then
unregisterResource(entity, map)
end
else
accountPlayerEntity(entity, map, false, false)
end
accountPlayerEntity(entity, map, false, false)
end
end