From bb42de28f266b07675fb6512fed1c661b9f61063 Mon Sep 17 00:00:00 2001 From: Luke aka SwissalpS Date: Mon, 5 Aug 2024 03:13:47 +0200 Subject: [PATCH] no need to send mode if mode is not a table, set_data() will read mode from tool, so no need to send a string. --- fs_history.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs_history.lua b/fs_history.lua index ee4f491..95ce5e4 100644 --- a/fs_history.lua +++ b/fs_history.lua @@ -95,8 +95,8 @@ replacer_setter.set_to_for_SwissalpS_fork = function(player, row) -- for SwissalpS' fork local parts = pattern:split(" ") local node = {name=parts[1], param1=0, param2=parts[3]} - local mode = "single" - replacer.set_data(replacer_stack, node, mode) + -- not passing mode causes set_data() to read mode from replacer + replacer.set_data(replacer_stack, node) inv:set_stack("main", wield_index - 1, replacer_stack) end end