Skip to content

Conversation

@nicolube
Copy link
Contributor

@nicolube nicolube commented Nov 4, 2024

Hello there,

currently, if an exeption is throwen inside a onClick catastrophic occurs.

Well what does that mean?
Item can be taken out of a menu, all inventory clicks are prevented until the same View is closed properly (Reconnect does not help).

So just wrap both in a try catch to prevent that.
IF should not break with some user of it maks a mistake.

Also added a server runner and plugin for easier testing.

@nicolube nicolube force-pushed the feat/prevent-catastrophic-failure branch from 3470e2f to 8e85712 Compare November 4, 2024 13:47
@nicolube nicolube force-pushed the feat/prevent-catastrophic-failure branch from 8e85712 to 698e60c Compare November 4, 2024 13:49
@nicolube nicolube changed the title Prevent catastrophic when item item render or click fails. Prevent catastrophic when item render or click fails. Nov 4, 2024
Copy link
Owner

@devnatan devnatan left a comment

Choose a reason for hiding this comment

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

Thx for your contribution :))

Inventory Framework v2 had a global error handler that was not shipped to Inventory Framework v3 unfortunately. An error handler may be a good feature for the future.

I'll publish a new release with it soon.

@devnatan devnatan merged commit 0c102a0 into devnatan:main Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants