From 033d87e4febcf4ab9ae3f0b1fa5720f35427cabb Mon Sep 17 00:00:00 2001 From: Truman Kilen Date: Fri, 4 May 2018 10:01:06 -0500 Subject: [PATCH] Fix typos in descriptions of home commands (#40) --- Addons/Commands/home.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Addons/Commands/home.lua b/Addons/Commands/home.lua index c65df76d..cc08b439 100644 --- a/Addons/Commands/home.lua +++ b/Addons/Commands/home.lua @@ -14,24 +14,24 @@ local function _homes(reset) return global.addons.homes end -commands.add_command('set-home', 'Set Your Home Possition', {}, function(event,args) +commands.add_command('set-home', 'Set your home position', {}, function(event,args) local player = Game.get_player(event) if not _homes()[player.index] then _homes()[player.index] = {player.force.get_spawn_position(player.surface),player.force.get_spawn_position(player.surface)} end _homes()[player.index][1] = {math.floor(player.position.x),math.floor(player.position.y)} player_return('Home set at: ('..math.floor(player.position.x)..','..math.floor(player.position.y)..')') end) -commands.add_command('home', 'Goto you home possition', {}, function(event,args) +commands.add_command('home', 'Go to you home position', {}, function(event,args) local player = Game.get_player(event) if not _homes()[player.index] then _homes()[player.index] = {player.force.get_spawn_position(player.surface),player.force.get_spawn_position(player.surface)} end _homes()[player.index][2] = {math.floor(player.position.x),math.floor(player.position.y)} player.teleport(player.surface.find_non_colliding_position('player',_homes()[player.index][1],32,1),player.surface) end) -commands.add_command('return', 'Goto where you were before using /home', {}, function(event,args) +commands.add_command('return', 'Go to where you were before using /home', {}, function(event,args) local player = Game.get_player(event) if not _homes()[player.index] then _homes()[player.index] = {player.force.get_spawn_position(player.surface),player.force.get_spawn_position(player.surface)} end local _temp = {math.floor(player.position.x),math.floor(player.position.y)} player.teleport(player.surface.find_non_colliding_position('player',_homes()[player.index][2],32,1),player.surface) _homes()[player.index][2] = _temp -end) \ No newline at end of file +end)