1
0
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:
SimonFlapse
2018-11-18 21:24:35 +01:00
parent 3876402e87
commit 0e6ba3e2cb

View File

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