Players can reloot chests even when restrict-player-reloot is true #9613
Labels
priority: high
This issue is either a gamebreaking bug or crash and needs to be addressed soon.
status: accepted
Disputed bug is accepted as valid or Feature accepted as desired to be added.
type: bug
Something doesn't work as it was intended to.
Expected behavior
It is expected that players are unable to loot a chest more than once with the restrict-player-reloot configuration option set to true.
Observed/Actual behavior
Players can loot a chest more than once.
Steps/models to reproduce
Start a fresh 1.20.1 Paper server with build 119.
Set the following in paper-world-defaults.yml:
lootables:
auto-replenish: true
refresh-max: 15s
refresh-min: 15s
Log in, find a lootable chest and loot it.
Observe that after 15 seconds, you are unable to loot the chest again (it remains empty).
Upgrade to Paper build 120.
Log in and reloot the same chest repeatedly every 15 seconds.
Plugin and Datapack List
None, I used a fresh installation to test.
Paper version
This server is running Paper version git-Paper-120 (MC: 1.20.1) (Implementing API version 1.20.1-R0.1-SNAPSHOT) (Git: 20a71c5)
Other
This happens even on build 126. It was noticed after I updated my production Paper server from build 111 to 126.
The text was updated successfully, but these errors were encountered: