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:
parent
d207dba5df
commit
d68c3c93d6
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user