From cf7dbe432292a82fec9bb0162be7395dc4a651e7 Mon Sep 17 00:00:00 2001 From: Someone Date: Tue, 2 Jan 2024 01:14:53 +0100 Subject: [PATCH] RELEASE 1.1.4 - Fixed game.player string replacement to support non-chained use: "local a = game.player game.print(a.name)" should work now. --- License.txt | 2 +- changelog.txt | 7 +++++++ control.lua | 2 +- info.json | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/License.txt b/License.txt index 6c79670..471d56f 100644 --- a/License.txt +++ b/License.txt @@ -1,4 +1,4 @@ -Copyright (c) 2018-2023 Someone +Copyright (c) 2018-2024 Someone Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/changelog.txt b/changelog.txt index ee9943b..a2beb4a 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,10 @@ +--------------------------------------------------------------------------------------------------- +Version: 1.1.4 +Date: 2024-01-02 + + Bugfixes: + - Fixed game.player string replacement to support non-chained use: "local a = game.player game.print(a.name)" should work now. + --------------------------------------------------------------------------------------------------- Version: 1.1.3 Date: 2023-04-10 diff --git a/control.lua b/control.lua index 702ad14..dd013ba 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', 'game.players['..player.index..']') f, err = loadstring(cmd) if not f then diff --git a/info.json b/info.json index 986afb7..2dc1f44 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "some-luaconsole", - "version": "1.1.3", + "version": "1.1.4", "title": "Someone's LUA-Console", "author": "someone1337", "homepage": "https://git.somenet.org/factorio/some-luaconsole.git", -- 2.43.0