Closed icykoneko closed 3 years ago
Reproduced with CarbyUtils:
CarbyUtils.setFishConditions("Blue Crab", {"startHour":20, "endHour":19})
The fish will only be considered up from 0-19, not 20-24 plus 0-19... That even includes if you were to reload at 21, it would be considered down still.
Bug appears to be in Fish::availableRangeDuring, which was already known to have issues.
Fish::availableRangeDuring
Looks like it's also failing to indicate range spans periods as well...
Try: CarbyUtils.setFishConditions("Blue Crab", {"startHour":12, "endHour":20}).
CarbyUtils.setFishConditions("Blue Crab", {"startHour":12, "endHour":20})
Fixed with disjoint-ranges branch.
Reproduced with CarbyUtils:
The fish will only be considered up from 0-19, not 20-24 plus 0-19... That even includes if you were to reload at 21, it would be considered down still.
Bug appears to be in
Fish::availableRangeDuring
, which was already known to have issues.