I ran a command to delete all enemies. however i made a typo. I typed enemies instead of enemy. Now literally everything is deleted. Shouldn't actually the command just not do anything since the force doesn't exist?
Code: Select all
/c local surface = game.player.surface for c in surface.get_chunks() do for key, entity in pairs(surface.find_entities_filtered({area={{c.x * 32, c.y * 32}, {c.x * 32 + 32, c.y * 32 + 32}}, force = "enemies"})) do entity.destroy() end end
Kind regards,
nik12111