mcpvp-club / FasterCrystals

GNU General Public License v3.0
29 stars 15 forks source link

Crystal sometimes explodes twice in certain situations #3

Closed Jyguy closed 11 months ago

Jyguy commented 11 months ago

In very specific situations, crystals are broken/placed twice when only one of each input was given.

This happens extremely often on servers with something identical to the old FastCrystals system, using Bukkit's interact listener.

The crystal first breaks from the left click, then it spawns from the interact listener. Afterwards, the left click packet is processed (breaking the crystal again) then it is placed again (right click packet).

This can be fixed by checking for the ticks lived of the crystal that is being destroyed in FasterCrystals.