snowgears / shopbugs

Shop bug tracker
8 stars 4 forks source link

[BUG] Store resets itself back to an old state #390

Closed Plattio closed 2 months ago

Plattio commented 1 year ago

Is there an existing issue for this?

Type of bug

Data loss

Environment

- Server Version: Paper 1.19 (git-Paper-81)
- Shop Version: 1.8.4.2

Server startup log

Private - No errors found (Dm $plattio#8113)

Shop config files

https://pastebin.com/wD5AX9di

Error log (if applicable)

No response

Bug description

I have the following problem. A player has created a Sugar Cane Shop which sells 1 piece at a time for 1 coin and there is enough sugar cane, so the sign is green.

Now when I restart the server or reload the plugin, the store sign is reset to an old state.

Accordingly, it has been marked as sold out here and the quantity has reset to 2. This also happens with the price, if it had been changed.

However, this bug only occurs with some individual stores and not with all.

Video: https://youtu.be/_YXb9PIAOBY

Steps to reproduce

The bug cannot be replicated directly, as it only occurs in some stores and the cause is unknown.

Video: https://youtu.be/_YXb9PIAOBY

Expected behaviour

The store does not reset.

Actual behaviour

The store resets itself back to an old state.

Other information

No response

Plattio commented 1 year ago

I have discovered the following errors in the console, which are also often displayed there. Unfortunately, I do not know if it is directly related to the above bug.

[12:16:37 ERROR]: Could not pass event InventoryCloseEvent to Shop v1.8.4.2
java.lang.NullPointerException: null
Kenshin175 commented 1 year ago

It's the same for me

OstlerDev commented 2 months ago

This issue should be fixed now I believe. If this is still an issue for you please feel free to create a new bug report!