1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-12-01 22:51:51 +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

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