From 574bddd51897ebf8c70c13873405aad833148f91 Mon Sep 17 00:00:00 2001 From: Someone Date: Fri, 2 Feb 2024 00:58:18 +0100 Subject: [PATCH] RELEASE 1.1.5 - Fixed bug introduced with the last bugfix. "game.print(game.players[1].name)" should work again. --- changelog.txt | 7 +++++++ control.lua | 2 +- info.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/changelog.txt b/changelog.txt index a2beb4a..8d757ab 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,10 @@ +--------------------------------------------------------------------------------------------------- +Version: 1.1.5 +Date: 2024-02-02 + + Bugfixes: + - Fixed bug introduced with the last bugfix. "game.print(game.players[1].name)" should work again. + --------------------------------------------------------------------------------------------------- Version: 1.1.4 Date: 2024-01-02 diff --git a/control.lua b/control.lua index dd013ba..5c51e8b 100644 --- a/control.lua +++ b/control.lua @@ -11,7 +11,7 @@ function exec_command(player) end cmd = global.cmd or "" - cmd = cmd:gsub('game%.player', 'game.players['..player.index..']') + cmd = cmd:gsub('game%.player([^s])', 'game.players['..player.index..']%1') f, err = loadstring(cmd) if not f then diff --git a/info.json b/info.json index 2dc1f44..d538ef2 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "some-luaconsole", - "version": "1.1.4", + "version": "1.1.5", "title": "Someone's LUA-Console", "author": "someone1337", "homepage": "https://git.somenet.org/factorio/some-luaconsole.git", -- 2.43.0