]> git.somenet.org - factorio/some-luaconsole.git/commitdiff
RELEASE 1.1.5 - Fixed bug introduced with the last bugfix. "game.print(game.players... master
authorSomeone <someone@somenet.org>
Thu, 1 Feb 2024 23:58:18 +0000 (00:58 +0100)
committerSomeone <someone@somenet.org>
Thu, 1 Feb 2024 23:58:18 +0000 (00:58 +0100)
changelog.txt
control.lua
info.json

index a2beb4a4010eea31c49afa5103b073dea9858291..8d757ab521b3a2aa8250dfcb96c2ec3f55efbd9b 100644 (file)
@@ -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
index dd013ba0fcb69ca15e311eb6e13df0fd8f1278a5..5c51e8bcd8c3c3bc213581b24b80308dd258a1c3 100644 (file)
@@ -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
index 2dc1f44874afd1aaa9150234cc96ca101b4aba01..d538ef2fe9ece6b1167303ec1c611bc3dc255212 100644 (file)
--- 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",