Correct typo

This commit is contained in:
Cody Young 2023-03-21 13:37:05 -05:00
parent 49833b2270
commit cb19161ddd
1 changed files with 2 additions and 2 deletions

View File

@ -21,8 +21,8 @@ end
function ItemStack:getName() function ItemStack:getName()
--- check for custom name --- check for custom name
if self.data.hasTagCompount() then if self.data.hasTagCompound() then
local nbt = self.data.getTagCompount() local nbt = self.data.getTagCompound()
if nbt.value.display and nbt.value.display.value.Name then if nbt.value.display and nbt.value.display.value.Name then
return nbt.value.display.value.Name.value return nbt.value.display.value.Name.value
end end