Items remain on hotbar after removed from inventory

Closed Beginner friendly
#219 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
csharp
Domain
game-dev

Research direction

Start by locating the inventory and hotbar update logic that handles item removal. Reproduce the bug by adding a Treated Healing Kit to the hotbar, dropping it from the inventory, and checking whether the hotbar assignment is cleared. The change is done when dropping the item removes its hotbar entry and pressing that hotbar key no longer attempts to pick it up.

Written by the indexing model from the issue text.

Description

bug

Version
OpenAC 0.1.25 (Linux)

What you did
Added a Treated Healing Kit to my hotbar, then dropped it on the ground from my inventory

What you expected
Treated Healing Kit should also be removed from my hotbar

What happened
Treated Healing Kit remained on my hotbar. Used the hotbar key it was assigned to - my character moved to the ground location and picked it back up.

Server
DreamWeave

Dominant language
C#
Stars
21
Forks
11
Avg merge
1d 1h
Merged PRs (30d)
71

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from eriknihlen/OpenAC

All issues in eriknihlen/OpenAC

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.