mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-14 15:24:52 +09:00
Replace spaces with tabs
This commit is contained in:
1 parent
e63f1246da
commit
2ffb848fe6
15 files changed
+473
-473
No files matched your search
@@ -8,22 +8,22 @@ put them in ghost mode and mark the inventory as clean.
|
||||
]]
|
||||
|
||||
function clean_dirty_inventory(player)
|
||||
global.inventory_sync.players[player.name].dirty_inventory = false
|
||||
global.inventory_sync.players[player.name].dirty_inventory = false
|
||||
|
||||
local surface = player.surface
|
||||
local position = player.position
|
||||
local character = player.character
|
||||
player.disassociate_character(character)
|
||||
character.die()
|
||||
player.ticks_to_respawn = nil
|
||||
player.teleport(position, surface)
|
||||
local surface = player.surface
|
||||
local position = player.position
|
||||
local character = player.character
|
||||
player.disassociate_character(character)
|
||||
character.die()
|
||||
player.ticks_to_respawn = nil
|
||||
player.teleport(position, surface)
|
||||
|
||||
-- Remove player character
|
||||
local character = player.character
|
||||
player.set_controller {
|
||||
type = defines.controllers.ghost,
|
||||
}
|
||||
if character ~= nil then character.destroy() end
|
||||
-- Remove player character
|
||||
local character = player.character
|
||||
player.set_controller {
|
||||
type = defines.controllers.ghost,
|
||||
}
|
||||
if character ~= nil then character.destroy() end
|
||||
end
|
||||
|
||||
return clean_dirty_inventory
|
||||
Reference in new issue
Block a user