Moved logic to TileEntityAllocator