1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2026-06-20 16:32:28 +02:00

mtn v3 - fix mystical chest

This commit is contained in:
Gerkiz
2021-11-19 22:53:02 +01:00
parent 3152079c44
commit 9ba5d2387c
@@ -1342,9 +1342,13 @@ local function create_market(data, rebuild)
this.market = surface.create_entity {name = 'market', position = center_position, force = 'player'}
if this.mystical_chest_enabled then
if this.mystical_chest and this.mystical_chest.entity then
this.mystical_chest.entity.destroy()
this.mystical_chest.entity = nil
end
this.mystical_chest = {
entity = surface.create_entity {name = 'logistic-chest-requester', position = {x = center_position.x, y = center_position.y + 2}, force = 'neutral'},
price = false
entity = surface.create_entity {name = 'logistic-chest-requester', position = {x = center_position.x, y = center_position.y + 2}, force = 'neutral'}
}
this.mystical_chest.entity.minable = false
this.mystical_chest.entity.destructible = false