You've already forked ComfyFactorio
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user