Skip to content
This repository was archived by the owner on Apr 28, 2026. It is now read-only.

fix(server): improve count validation and extra type checks#23

Merged
antond15 merged 3 commits into
mainfrom
count-checks
Jun 30, 2025
Merged

fix(server): improve count validation and extra type checks#23
antond15 merged 3 commits into
mainfrom
count-checks

Conversation

@antond15

Copy link
Copy Markdown
Member

This PR fixes issues connected with passing invalid or negative count to several inventory methods (eg. AddItem, RemoveItem, SetItem).
Reported in #14.

These changes do not affect the conditions under which the functions succeed.
It only adds proper returns and responses, instead of erroring.

Comment thread modules/inventory/server.lua Outdated
Comment thread modules/inventory/server.lua Outdated
Comment thread modules/inventory/server.lua Outdated
Comment thread modules/inventory/server.lua Outdated
Comment thread modules/inventory/server.lua Outdated
@antond15 antond15 requested a review from ESK0 May 27, 2025 10:26

@ESK0 ESK0 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@antond15 antond15 merged commit 4d178a5 into main Jun 30, 2025
@antond15 antond15 deleted the count-checks branch June 30, 2025 13:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants