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:
parent
fa78319b52
commit
ba07600ba5
27
control.lua
27
control.lua
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user