Fix ItemStackWrapper ignoring stack's NBT (#1155)
who even made this class i mean come on this is such a stupid thing to do like omgwtf what a moron
This commit is contained in:
parent
16d4609a48
commit
8c12b48695
|
@ -56,11 +56,11 @@ public class ItemStackWrapper
|
|||
public static ItemStackWrapper getHolder(ItemStack stack)
|
||||
{
|
||||
if (stack.isEmpty())
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return new ItemStackWrapper(stack.getItem(), stack.getCount(), stack.getItemDamage());
|
||||
ItemStackWrapper wrapper = new ItemStackWrapper(stack.getItem(), stack.getCount(), stack.getItemDamage());
|
||||
wrapper.setNbtTag(stack.getTagCompound());
|
||||
return wrapper;
|
||||
}
|
||||
|
||||
public ItemStack toStack()
|
||||
|
|
Loading…
Reference in a new issue