Add damage getters to ItemGroup

This commit is contained in:
Gabriel Tofvesson 2024-10-11 23:15:47 +02:00
parent fece7532c2
commit bad85564b1

View File

@ -53,6 +53,14 @@ function ItemGroup:getNBT()
return self:_getIdentityStack():getNBT()
end
function ItemGroup:getDamage()
return self:_getIdentityStack():getDamage()
end
function ItemGroup:getMaxDamage()
return self:_getIdentityStack():getMaxDamage()
end
function ItemGroup:_getIdentityStack()
return self[1]
end