Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit d332d3e

Browse files
committed
Remove setsettings override
It's fucking up for some reason
1 parent b9e3e2e commit d332d3e

1 file changed

Lines changed: 0 additions & 25 deletions

File tree

src/General.lua

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -488,31 +488,6 @@ function calltable(t, ...)
488488
return f(table.unpack(args))
489489
end
490490

491-
--[[
492-
* This is basically an improvement of setsetting(). It handles using the first
493-
* parameter as a userdata for lootingdata and supplydata.
494-
*
495-
* @since 1.1.0
496-
* @overrides
497-
*
498-
* @param {table} t - The table with the function to be
499-
* called and its arguments
500-
* @param {any} [...] - Extra arguments
501-
*
502-
* @returns {string} - The converted value
503-
--]]
504-
function setsetting(obj, property, value)
505-
if type(obj) == 'userdata' then
506-
if obj.objtype == 'lootingdata' then
507-
return _SETSETTING('Looting/LootList/' .. obj.name .. '/' .. property, value)
508-
elseif obj.objtype == 'supplydata' then
509-
return _SETSETTING('Supplies/Items/' .. obj.name .. '/' .. property, value)
510-
end
511-
end
512-
513-
return _SETSETTING(obj, property, value)
514-
end
515-
516491
--[[
517492
* Waits until a condition is satisfied for a maximum time of `time`. Condition
518493
* must be passed as the `f` argument and any extra parameters and be passed as

0 commit comments

Comments
 (0)