Fix players after the first not attackable
This commit is contained in:
parent
34d3b4a1a5
commit
86f8c55506
2 changed files with 5 additions and 4 deletions
5
lignumis/migrations/lignumis-1.0.32.lua
Normal file
5
lignumis/migrations/lignumis-1.0.32.lua
Normal file
|
@ -0,0 +1,5 @@
|
|||
for _, player in pairs(game.players) do
|
||||
if player.character then
|
||||
player.character.destructible = true
|
||||
end
|
||||
end
|
|
@ -27,7 +27,6 @@ local function init_player(event)
|
|||
if not player.character or not surface then return end
|
||||
|
||||
player.teleport(surface.find_non_colliding_position("character", { 0, 0 }, 0, 1), "lignumis")
|
||||
player.character.destructible = false
|
||||
local main_inventory = player.character.get_main_inventory()
|
||||
|
||||
-- Add some starting items to player inventory
|
||||
|
@ -149,9 +148,6 @@ Init.events[defines.events.on_cutscene_cancelled] = function(event)
|
|||
if player.gui.screen.skip_cutscene_label then
|
||||
player.gui.screen.skip_cutscene_label.destroy()
|
||||
end
|
||||
if player.character then
|
||||
player.character.destructible = true
|
||||
end
|
||||
player.zoom = 1.5
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue