Skip to content

Commit

Permalink
Fix metadata check in item registration
Browse files Browse the repository at this point in the history
  • Loading branch information
ImXirvin committed Apr 10, 2024
1 parent cdd005e commit 7d9866e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ CreateThread(function()
local items = config.items
for k, v in pairs(items) do
core.RegisterUsableItem(k, function(source, _, metadata)
if not metadata then
if not metadata or not metadata.idType then
local player = core.GetPlayer(source)
player.removeItem(k, 1)
metadata = createLicense(source, k, true)
Expand Down

0 comments on commit 7d9866e

Please sign in to comment.