Prevent class cast exception loading tile entity