1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-26 03:52:22 +02:00

Desert Oasis fixes

This commit is contained in:
hanakocz 2025-01-23 22:54:54 +01:00
parent e2e29e8e9f
commit 48cade52bc
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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