1
0

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.
This commit is contained in:
Luke aka SwissalpS 2024-08-05 03:13:47 +02:00
parent 8d20f67f43
commit bb42de28f2

View File

@ -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