Closed Bimby-Boi closed 4 months ago
Of course the minute after I open this I solved it. idk why this comment is getting formatted the way it is, sorry I'm bad with github The issue was having the client and server part open in the item. So for example
["garbage scrapmetal"] = { --'item1 item2' this is the 2 items that will be dragged ontop of eachother seperated by a single space
duration = 2000,
debug = true,
client = {
before = function(recipeData) --recipeData is all the info defined here for this specific recipe.
-- some client logic to run before crafting
-- if this returns false, it will cancel the craft
-- returning true or nil will continue with the craft
end,
after = function(recipeData)
-- some client logic to run after successfully crafting
end,
},
server = {
before = function(recipeData)
-- some server logic to run before crafting
-- if this returns false, it will cancel the craft
-- returning true or nil will continue with the craft
end,
after = function(recipeData)
-- some server logic to run after successfully crafting
end,
},
costs = {
["garbage"] = {need = 1, remove = true}, --removes 10% durability everytime its used in a craft. so this would allow 10 uses. 10 * 10 = 100
["scrapmetal"] = {need = 0.1, remove = true},
},
result = {
{name = "lockpick", amount = 1},
},
},
is how it its by default. I removed client and server, leaving me with this
["garbage scrapmetal"] = { --'item1 item2' this is the 2 items that will be dragged ontop of eachother seperated by a single space
duration = 2000,
debug = true,
costs = {
["garbage"] = {need = 1, remove = true}, --removes 10% durability everytime its used in a craft. so this would allow 10 uses. 10 * 10 = 100
["scrapmetal"] = {need = 0.1, remove = true},
},
result = {
{name = "lockpick", amount = 1},
},
},
and no more error. Sorry to have opened a issue when it was my fault.
I've added prints in an effort to track down where/why but I'm unsuccessful
This happens with every item I've added including the original one it comes with.