Buuz135 / FunctionalStorage

FunctionalStorage
MIT License
30 stars 32 forks source link

Prevent Double Removal of Blocks Using Access Timer #220

Closed ChampionAsh5357 closed 11 months ago

ChampionAsh5357 commented 11 months ago

Closes #212

See the issue for more details about the problem. TL;DR, the addition of the block into the mining hand is causing a double-click to occur. To prevent this, a timer is added to the inventory to prevent an interaction for the next three ticks, or 150ms. Most people shouldn't be spamming the block this fast, so it will usually go unnoticed.

Thanks to @pupnewfster for providing an example to this solution. I wanted to do mixins