Fixed writing to NBT in readFromNBT.
Merge pull request #6 from ShadowBlade50/master

Fixed writing to NBT in readFromNBT.