1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-22 03:38:48 +02:00
This commit is contained in:
MewMew 2019-03-23 02:02:30 +01:00
parent c20dd7468c
commit 8abf19f60a
2 changed files with 9 additions and 4 deletions

View File

@ -39,11 +39,11 @@ require "score"
-----------------------------
---- enable maps here ----
--require "maps.biter_battles_v2.biter_battles_v2"
require "maps.biter_battles_v2.biter_battles_v2"
--require "maps.biter_battles.biter_battles"
--require "maps.cave_miner"
--require "maps.labyrinth"
require "maps.junkyard"
--require "maps.junkyard"
--require "maps.spooky_forest"
--require "maps.nightfall"
--require "maps.atoll"

View File

@ -78,8 +78,13 @@ local function process_entity(surface, entity)
end
if entity.name == "player" then
return
end
surface.create_entity({name = entity.name, position = new_pos, direction = direction_translation[entity.direction], force = entity.force.name})
end
if entity.name == "fish" then
local new_e = {name = entity.name, position = new_pos, direction = direction_translation[entity.direction]}
if not surface.can_place_entity(new_e) then return end
local e = surface.create_entity(new_e)
return
end
end
local function clear_chunk(surface, area)