mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 19:45:22 +09:00
No Afk paths
This commit is contained in:
@@ -62,6 +62,7 @@ end)
|
||||
|
||||
Event.register(defines.events.on_player_changed_position, function(event)
|
||||
local player = Game.get_player(event)
|
||||
if player.afk_time > 300 then return end
|
||||
local surface = player.surface
|
||||
local pos = player.position
|
||||
if not paths[surface.get_tile(pos).name] then return end
|
||||
|
||||
Reference in New Issue
Block a user