decentraland / decentraland/unity-explorer

Fix fishing errors (B001/B002/B003, invalid result timing) and stuck UI when bait runs out

Open
#9,536 1 comment 0 reactions 0 assignees View on GitHub
2-medium bug content-team ui
Dominant language
C#
Stars
23
Forks
17
Avg merge
2d 16h
Merged PRs (30d)
101

Description

### Build version
Not specified

### Issue Description
Multiple fishing-related errors occur when a player runs out of bait and attempts to fish again:
- Error codes B003, B002, and B001 are triggered after purchasing any bait, using it up, and attempting to fish again
- "Invalid result timing" error appears and the caught item is not added to the player's inventory
- The fishing UI message remains stuck on screen and does not disappear after the interaction

### STR (Steps to Reproduce)
1. Open the app
2. Purchase any type of bait (e.g. shrimp)
3. Use it as bait and fish until the bait is fully depleted
4. Attempt to go fishing again with no bait remaining

### Expected Result
The out-of-bait state should be handled gracefully — either preventing fishing or prompting to purchase more bait, without triggering error codes. Caught items should be added to inventory, and the fishing UI should clear after each interaction ends.

### Actual Result with evidence
- B003, B002, and B001 error codes fire when attempting to fish after bait is depleted (100% repro)
- "Invalid result timing" error appears with no item added to inventory (intermittent)
- Fishing UI message persists on screen after the interaction ends

### Reproduction
Always (100%) for out-of-bait error codes; Intermittent (~5/10) for invalid result timing and stuck UI

### Operative system and additional Notes
Windows

### Related Issues
- #9512 — Out of bait UI persists after replacing bait (overlapping symptom)

---
Reported by Daf and Flora
Requested by Dawid Krajewski (<@U079GRD9WTZ>)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the out-of-bait flow in the Unity app on Windows, then trace the fishing interaction from bait depletion through the B001/B002/B003 and “Invalid result timing” errors. Compare the overlapping symptom in issue #9512; done means out-of-bait attempts are handled without errors, caught items reach inventory, and the fishing UI clears after each interaction.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, unity
Domain
game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.