From 33eab7334b22cb16e894f10a0b1049adb14b8280 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Sun, 13 May 2018 12:26:35 +0100 Subject: [PATCH] Added Tile to /interface --- ExpCore/server.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ExpCore/server.lua b/ExpCore/server.lua index f72a6888..7a07df0c 100644 --- a/ExpCore/server.lua +++ b/ExpCore/server.lua @@ -197,7 +197,7 @@ if commands._expgaming then commands.add_command('interface', 'Runs the given input from the script', {'code',true}, function(event,args) local callback = args.code if not string.find(callback,'%s') and not string.find(callback,'return') then callback = 'return '..callback end - if game.player then callback = 'local player, surface, force, entity, position = game.player, game.player.surface, game.player.force, game.player.selected, game.player.position;'..callback end + if game.player then callback = 'local player, surface, force, position, entity, tile = game.player, game.player.surface, game.player.force, game.player.position, game.player.selected, game.player.surface.get_tile(game.player.position);'..callback end if Ranking and Ranking.get_rank and game.player then callback = 'local rank = Ranking.get_rank(game.player);'..callback end local success, err = Server.interface(callback) if not success and is_type(err,'string') then local _end = string.find(err,'stack traceback') if _end then err = string.sub(err,0,_end-2) end end