Fixing a bug involving stacking damaged tools.