NBT-API

NBT-API

98.9k Downloads

Optimization

punkeel opened this issue ยท 2 comments

commented

Hello,

You should not create a NBTTagCompound when it's not required : https://github.com/tr7zw/Item-NBT-API/blob/master/src/main/java/de/tr7zw/itemnbtapi/NBTReflectionUtil.java#L272, for instance (and in getXXX() ;-))

commented

I think you will get a nullpointer if you remove this line?

commented

if (nbttag == null) return false; ;-)