mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-01-22 03:38:48 +02:00
fixes
This commit is contained in:
parent
c20dd7468c
commit
8abf19f60a
@ -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"
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user