[1.16.4 Forge] Flux Capacitors & Similar charging items causing thrown bows to crash client out of server
Creepercharge opened this issue ยท 0 comments
Forge version: 35.1.37
Mod Version: v1.16.4 Forge b3
The client crashes whenever a charging item(flux capacitor or similar) is activated and any bow from the mod gets thrown, the client is kicked from the server.
A friend thinks this is related to the error:
Caused by: java.lang.ClassCastException: net.minecraft.item.AirItem cannot be cast to me.marnic.extrabows.common.items.BasicBow
at me.marnic.extrabows.api.util.UpgradeUtil.getUpgradesFromStack(UpgradeUtil.java:50) ~[extrabows:v1.16.4 b3]
at me.marnic.extrabows.common.items.BasicBow$BowCapability.getCapability(BasicBow.java:359) ~[extrabows:v1.16.4 b3]
at net.minecraftforge.common.capabilities.CapabilityDispatcher.getCapability(CapabilityDispatcher.java:102) ~[forge:?]
at net.minecraftforge.common.capabilities.CapabilityProvider.getCapability(CapabilityProvider.java:118) ~[forge:?]
at cofh.thermal.innovation.item.RFCapacitorItem.func_77663_a(RFCapacitorItem.java:120) ~[thermal_innovation:1.1.7]
at net.minecraft.item.ItemStack.func_77945_a(ItemStack.java:431) ~[?:?]
at net.minecraft.entity.player.PlayerInventory.func_70429_k(PlayerInventory.java:238) ~[?:?]
at net.minecraft.entity.player.PlayerEntity.func_70636_d(PlayerEntity.java:487) ~[?:?]
at net.minecraft.entity.LivingEntity.func_70071h(LivingEntity.java:2158) ~[?:?]
at net.minecraft.entity.player.PlayerEntity.func_70071h(PlayerEntity.java:223) ~[?:?]
at net.minecraft.entity.player.ServerPlayerEntity.func_71127_g(ServerPlayerEntity.java:404) ~[?:?]