Now resources only work on the correct type of obstacle.