From 6dc1b5dda268faf85960bac348eeb3f8b564db67 Mon Sep 17 00:00:00 2001 From: npc-strider Date: Sun, 29 Nov 2020 23:42:27 +0800 Subject: [PATCH] 0.5.1: fixed switched shortcut tools --- changelog.txt | 8 ++++++++ control.lua | 4 ++-- info.json | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/changelog.txt b/changelog.txt index 101f02a..3ccb2da 100644 --- a/changelog.txt +++ b/changelog.txt @@ -60,3 +60,11 @@ Date: 2020-11-28 - Added mod option to override the default tool/remote given by shortcut - Added mod option to disable player alerts - _NOTE: BETA RELEASE - USE AT YOUR OWN RISK! + +--------------------------------------------------------------------------------------------------- +Version: 0.5.1 +Date: 2020-11-29 + Features: + - NOTE: BETA RELEASE - USE AT YOUR OWN RISK! + Bugfixes: + - Fixed switched shortcuts \ No newline at end of file diff --git a/control.lua b/control.lua index eda705d..d5d8baa 100644 --- a/control.lua +++ b/control.lua @@ -58,9 +58,9 @@ script.on_event(defines.events.on_lua_shortcut, function(event) local settings = settings.get_player_settings(game.players[index]) local name = event.prototype_name if name == "squad-spidertron-remote" then - GiveLinkTool(index, settings) - elseif name == "squad-spidertron-link-tool" then GiveSquadTool(index, settings) + elseif name == "squad-spidertron-link-tool" then + GiveLinkTool(index, settings) elseif name == "squad-spidertron-follow" then -- squad_leader_state(index) SpiderbotFollow(game.players[index]) diff --git a/info.json b/info.json index e6cb2ac..a7a97c9 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "Spider_Control", - "version": "0.5.0", + "version": "0.5.1", "factorio_version": "1.1", "title": "Spidertron squad control [BETA RELEASE]", "author": "npc_strider(morley376)",