Skip to content

Commit f8407e9

Browse files
authored
Merge branch 'main' into patch/unknown-locale-entity
2 parents 1e34b6c + 2a80408 commit f8407e9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

control.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ script.on_event(defines.events.on_tick, function(event)
5858
return
5959
end
6060

61-
random_player.surface.create_entity {
61+
random_player.physical_surface.create_entity {
6262
name = "artillery-projectile",
63-
position = random_player.position,
64-
target = random_player.position,
63+
position = random_player.physical_position,
64+
target = random_player.physical_position,
6565
force = "neutral"
6666
}
6767

0 commit comments

Comments
 (0)