WeaponMechanics/MechanicsMain

[BUG] Ammo dupe

Closed this issue · 2 comments

Current/Expected Behavior

Bullets from any weapon can be duped using the secondary/off hand.

The bullets that are duped are those that are in the weapon's chamber, for example AUG has 20 bullets in the chamber (not 30 which is the maximum) and by performing the bug process you will be duped 20+20+20+20 by spamming

Steps To Reproduce

  1. Have a weapon in hand
  2. Use the hotkey to change the hand item (Default: F)
  3. Do this process by spamming the F hotkey

Log File

The log file is not needed, it is a bug that I found in all versions

Anything else?

No response

Added:

  • I tested the error in different versions of Spigot and Paper, in all of them it works (I did not check in Purpur but it would be logical that it happens the same)
  • I tested from version 3.2.7 to the current 3.4.9 and it works in all versions in between

I am also using Paperspigot 1.19.4 (Build #550, latest)

Fixed in #458