Thutmose / ThutEssentials

Essentials mod for Forge
7 stars 6 forks source link

Buy function of shops not working properly/duping bug #82

Closed crdtrd closed 4 years ago

crdtrd commented 4 years ago

Issue Description:

Buy function of shops not working properly and duping bug

What happens:

Video The shop owner is buying 1 anvil for 1 currency. The balance of both players is properly handled, transferring over 1 currency per transaction. However, no anvils are transferred out of the sellers inventory except for 1 anvil after a while (I suspect after 64 transactions). What makes it a duping bug is that 1 anvil DOES get placed in the chest for every transaction.

What you expected to happen:

I expected 1 anvil to be transferred out of the sellers inventory per transaction.

Steps to reproduce:

Set up a shop buying one item for 1 currency. Works with any item.


Affected Versions (Do not use "latest"): Replace with a list of all mods you have in.

crdtrd commented 4 years ago

I closed this issue initially because it was an outdated version of the mod. I updated, but it seems that the issue persists after some testing.