[Alpha] Usage Ticker freaks out when you holding a bow or crossbow in creative
LeoBeliik opened this issue ยท 4 comments
UsageTickerModule.Client#getLogicalStack -> it passes the isProjectileWeapon
check, so execution proceeds to player.getProjectile(crossbow)
-> returns a new ItemStack(Items.ARROW)
in creative and ItemStack.EMPTY
otherwise, since getProjectile
is also used for determining which arrow to shoot when you actually fire the weapon.
Just a guess but this probably applies to 1.19 as well
The first check here is the culprit:
It's an object equality check, the getProjectile
specialcase returns a new ItemStack
every time so the object equality always fails.