mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-01-18 03:21:47 +02:00
Fixed failed checks
This commit is contained in:
parent
358c13c8ca
commit
f06d34ca48
@ -156,7 +156,7 @@ local function spy(args, player)
|
||||
-- {location = "[gps=-110,-17,redmew]"}
|
||||
local location_string = args.location
|
||||
local coords = {}
|
||||
|
||||
|
||||
for m in string.gmatch( location_string, "%-?%d+" ) do
|
||||
table.insert(coords, tonumber(m))
|
||||
end
|
||||
@ -174,7 +174,6 @@ local function spy(args, player)
|
||||
local rad=16
|
||||
player.force.chart(player.surface, {{xpos-rad, ypos-rad}, {xpos+rad, ypos+rad}})
|
||||
game.print({'command_description.crash_site_spy_success', player_name, xpos,ypos}, Color.success)
|
||||
|
||||
inv.remove({name = "coin", count = 1000})
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user