fix internal identifiers
This commit is contained in:
parent
eb289d57cf
commit
5dba54b933
6
lib.lua
6
lib.lua
@ -170,9 +170,9 @@ end
|
||||
|
||||
-- Gets the internal identifier of an item - unique (hopefully) per type of item, as defined by NBT, metadata/damage and ID/name
|
||||
local function get_internal_identifier(item)
|
||||
local n = item.name
|
||||
if item.damage then n = n .. ":" .. item.damage end
|
||||
if item.nbtHash then n = n .. "#" .. item.nbtHash end
|
||||
local n = item.ID
|
||||
if item.meta then n = n .. ":" .. item.meta end
|
||||
if item.NBT_hash then n = n .. "#" .. item.NBT_hash end
|
||||
return n
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user