mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 03:25:23 +09:00
Quick fix for player physical position
This commit is contained in:
@@ -45,7 +45,10 @@ Event.add(defines.events.on_player_created, function(event)
|
||||
util.insert_safe(player, global.created_items)
|
||||
|
||||
local r = global.chart_distance or 200
|
||||
player.force.chart(player.surface, { { player.position.x - r, player.position.y - r }, { player.position.x + r, player.position.y + r } })
|
||||
player.force.chart(player.physical_surface, {
|
||||
{ player.physical_position.x - r, player.physical_position.y - r },
|
||||
{ player.physical_position.x + r, player.physical_position.y + r }
|
||||
})
|
||||
|
||||
if not global.skip_intro then
|
||||
if game.is_multiplayer() then
|
||||
|
||||
Reference in New Issue
Block a user