mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-03-25 21:29:06 +02:00
Merge branch 'develop' into develop
This commit is contained in:
commit
f8930c981e
@ -438,6 +438,8 @@ local function deny_building(event)
|
||||
if type_whitelist[entity.ghost_name] then
|
||||
return
|
||||
end
|
||||
else
|
||||
return
|
||||
end
|
||||
end
|
||||
|
||||
@ -533,6 +535,9 @@ local function on_player_changed_position(event)
|
||||
if player.vehicle then
|
||||
return
|
||||
end
|
||||
if script.active_mods['space-age'] and player.cargo_pod then
|
||||
return
|
||||
end
|
||||
|
||||
if safe_tiles[surface.get_tile(player.physical_position.x, player.physical_position.y).name] then
|
||||
return
|
||||
|
@ -253,7 +253,7 @@ local function delete_nauvis_chunks(journey)
|
||||
return
|
||||
end
|
||||
|
||||
for _ = 1, 1, 1 do --1 chunk per action until 2.0.31! TODO: fix back to 12 when version released
|
||||
for _ = 1, 12, 1 do
|
||||
local chunk_position = journey.nauvis_chunk_positions[journey.size_of_nauvis_chunk_positions]
|
||||
if chunk_position then
|
||||
surface.delete_chunk(chunk_position)
|
||||
@ -1575,13 +1575,10 @@ function Public.mothership_waiting_for_players(journey)
|
||||
end
|
||||
|
||||
function Public.teleporters(journey, player)
|
||||
if not player.character then
|
||||
if not player.character or not player.character.valid then
|
||||
return
|
||||
end
|
||||
if not player.character.valid then
|
||||
return
|
||||
end
|
||||
if player.vehicle then
|
||||
if player.character.vehicle then
|
||||
return
|
||||
end
|
||||
local surface = player.physical_surface
|
||||
|
@ -402,7 +402,7 @@ Public.volcanic = {
|
||||
end,
|
||||
on_player_changed_position = function (event)
|
||||
local player = game.players[event.player_index]
|
||||
if player.driving then
|
||||
if player.driving or player.controller_type == defines.controllers.remote then
|
||||
return
|
||||
end
|
||||
local surface = player.surface
|
||||
|
@ -87,7 +87,7 @@ local function sip(player)
|
||||
end
|
||||
local water_tiles = player.surface.count_tiles_filtered({
|
||||
name = { 'water', 'deepwater', 'water-mud', 'water-shallow' },
|
||||
area = { { player.position.x - 1, player.position.y - 1 }, { player.position.x + 1, player.position.y + 1 } }
|
||||
area = { { player.physical_position.x - 1, player.physical_position.y - 1 }, { player.physical_position.x + 1, player.physical_position.y + 1 } }
|
||||
})
|
||||
if water_tiles > 0 then
|
||||
this.hydration[player.index] = this.hydration[player.index] + 200
|
||||
|
Loading…
x
Reference in New Issue
Block a user