mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-11-06 09:09:26 +02:00
Prevents walking when jailed
This commit is contained in:
@@ -188,6 +188,10 @@ function Module.jail(target_player, player)
|
||||
target_player.shooting_state.state = {state = defines.shooting.not_shooting, position = {0,0}}
|
||||
end
|
||||
|
||||
if jail_target.walking_state.walking == true -- Stop them walking while jailed
|
||||
jail_target.walking_state = {walking = false, direction = defines.direction.north}
|
||||
end
|
||||
|
||||
-- Check that it worked
|
||||
if target_player.permission_group == permission_group then
|
||||
-- Let admin know it worked, let target know what's going on.
|
||||
|
||||
Reference in New Issue
Block a user