1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-12 10:04:40 +02:00

removed test code

This commit is contained in:
James Gillham 2017-08-25 15:49:53 +01:00
parent fa78319b52
commit ba07600ba5

View File

@ -20,15 +20,6 @@ require "on_tick"
require "follow"
require "spawn_control"
--[[
local function player_respawned(event)
game.print("hello")
end
Event.register(defines.events.on_player_respawned, player_respawned)
--]]
function player_joined(event)
local player = game.players[event.player_index]
player.insert { name = "raw-fish", count = 4 }
@ -51,23 +42,5 @@ function walkabout(player_name, distance)
game.player.print("This command moved to /walkabout.")
end
--[[
tp_players = {}
function tp_mode(boolean)
tp_players[game.player.index] = boolean
end
local function put_item(event)
local index = event.player_index
if tp_players[index] then
game.players[index].teleport(event.position)
end
end
Event.register(defines.events.on_put_item, put_item )
--]]
Event.register(defines.events.on_player_created, player_joined)
Event.register(defines.events.on_player_respawned, player_respawned)