ruby: fix map tile material reading