1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-03-03 14:53:01 +02:00

Merge pull request #473 from plague006/fix/kill

Fix /kill checks around walkabout
This commit is contained in:
Lynn 2018-11-28 13:14:22 +01:00 committed by GitHub
commit 5b0e2f0e9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,7 +88,7 @@ local function kill(cmd)
end
if global.walking then
if (player and global.walking[player.index]) or global.walking[target.index] then
if (player and global.walking[player.index]) or (target and global.walking[target.index]) then
Game.player_print("A player on walkabout cannot be killed by a mere fish, don't waste your efforts.")
return
end