TF2 Stuff - Reloaded

TF2 Stuff - Reloaded

382k Downloads

Game crashes when weapon is removed from player's hands whilst firing

TinyDeskEngineer06 opened this issue ยท 0 comments

commented

If a player is firing an automatic weapon, if said weapon is removed from the players hands while still firing, the game immediately crashes with this error:
The game crashed whilst ticking player Error: java.lang.ClassCastException: net.minecraft.item.ItemAir cannot be cast to rafradek.TF2weapons.item.ItemWeapon