Skip to content

Commit

Permalink
fix(server/items): nil metadata (#1246)
Browse files Browse the repository at this point in the history
  • Loading branch information
userMacieG authored Apr 8, 2023
1 parent 7ebc0d6 commit 8fc7abc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/items/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,8 @@ function Items.CheckMetadata(metadata, item, name, ostime)
metadata.serial = nil
end

if item.metadata.specialAmmo and type(item.metadata.specialAmmo) ~= 'string' then
item.metadata.specialAmmo = nil
if metadata.specialAmmo and type(metadata.specialAmmo) ~= 'string' then
metadata.specialAmmo = nil
end
end

Expand Down

0 comments on commit 8fc7abc

Please sign in to comment.