itemdb potion hack
This commit is contained in:
@@ -115,6 +115,11 @@ function itemDB:add(baseItem)
|
||||
nItem.maxCount = baseItem.maxCount
|
||||
nItem.maxDamage = baseItem.maxDamage
|
||||
|
||||
-- potions can have the same damage, diff nbts, but same names
|
||||
-- ie. potion of healing, potion of healing II
|
||||
-- both show as "Potion of Healing"
|
||||
|
||||
if nItem.name ~= 'minecraft:potion' --[[ HACK ]] then
|
||||
for k,item in pairs(self.data) do
|
||||
if nItem.name == item.name and
|
||||
nItem.displayName == item.displayName then
|
||||
@@ -137,6 +142,7 @@ function itemDB:add(baseItem)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
TableDB.add(self, self:makeKey(nItem), nItem)
|
||||
nItem = Util.shallowCopy(nItem)
|
||||
|
||||
Reference in New Issue
Block a user