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

Merge pull request #425 from plague006/fix/walkabout

Fix/walkabout
This commit is contained in:
Matthew 2018-11-21 18:23:43 -05:00 committed by GitHub
commit 49b15978ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -90,9 +90,11 @@ local function kill(cmd)
end end
end end
if global.walking[player.index] == true or global.walking[target.index] == true then if global.walking then
player.print("A player on walkabout cannot be killed by a mere fish, don't waste your efforts.") if global.walking[player.index] == true or global.walking[target.index] == true then
return player.print("A player on walkabout cannot be killed by a mere fish, don't waste your efforts.")
return
end
end end
if not target and player then if not target and player then

View File

@ -1,4 +1,3 @@
local global = {}
local Task = require 'utils.Task' local Task = require 'utils.Task'
local Game = require 'utils.game' local Game = require 'utils.game'
local Event = require 'utils.event' local Event = require 'utils.event'