1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-30 04:40:54 +02:00

Fish v2 - fix terrain

This commit is contained in:
Gerkiz 2024-10-22 23:59:04 +02:00
parent 99e73627af
commit 551ed861f0
3 changed files with 4 additions and 5 deletions

View File

@ -1436,7 +1436,6 @@ function Public.reset_game()
['enemy-base'] = { frequency = 'none', size = 'none', richness = 'none' }
}
map_gen_settings.default_enable_all_autoplace_controls = false
local active_surface_index = Public.get('active_surface_index')

View File

@ -41,7 +41,7 @@ local function add_space(frame)
add_style(frame.add { type = 'line', direction = 'horizontal' }, space)
end
function get_player_data(player, remove)
local function get_player_data(player, remove)
local storage_data = Public.get('player_market_settings')
if not storage_data then
Public.set('player_market_settings', {})

View File

@ -9,9 +9,9 @@ local Public = {}
---@param color Color|table
function Public.flying_text(player, surface, position, text, color)
if not player then
for _, player in pairs(game.connected_players) do
if player.surface == surface then
player.create_local_flying_text({
for _, p in pairs(game.connected_players) do
if p.surface == surface then
p.create_local_flying_text({
text = text,
position = position,
color = color