Fix a Tileset Cache Bug

This should fix a bug reported by Zementblock.