handled proper null value for nbt

This commit is contained in:
gnembon committed 2019-10-16 21:17:04 -03:00
1 parent f0054564fe
commit 8294c79428
2 files changed
+29 -9

No files matched your search

@@ -51,7 +51,7 @@ public class ListValue extends AbstractListValue implements ContainerValueInterf
return ListValue.of(
new StringValue(Registry.ITEM.getId(itemstack.getItem()).getPath()),
new NumericValue(itemstack.getCount()),
new NBTSerializableValue(itemstack)
NBTSerializableValue.fromStack(itemstack)
);
}