Made TileEntity write NBT after invalidated