Tfarcenim / RandomEnchantments

random enchants
8 stars 15 forks source link

Disarm crash #40

Closed MrSheeshs closed 4 years ago

MrSheeshs commented 4 years ago

i installed a mod "fun items mod" and add the enchant "Disarm". when i try to hit the enderdragon it crash. the same when hitted the end cristal i dont think it's because fun items mod, but i didn't try with vanilla swords Crash_report: java.lang.ClassCastException: net.minecraft.entity.boss.dragon.EnderDragonPartEntity cannot be cast to net.minecraft.entity.LivingEntity at com.tfar.randomenchants.ench.enchantment.EnchantmentDisarm.func_151368_a(EnchantmentDisarm.java:62) ~[?:3.1.0] {re:classloading} at net.minecraft.enchantment.EnchantmentHelper.lambda$applyArthropodEnchantments$5(EnchantmentHelper.java:154) ~[?:?] {re:classloading} at net.minecraft.enchantment.EnchantmentHelper.lambda$applyEnchantmentModifier$1(EnchantmentHelper.java:103) ~[?:?] {re:classloading} at java.util.Optional.ifPresent(Unknown Source) ~[?:1.8.0_241] {} at net.minecraft.enchantment.EnchantmentHelper.func_77518_a(EnchantmentHelper.java:102) ~[?:?] {re:classloading} at net.minecraft.enchantment.EnchantmentHelper.func_77516_a(EnchantmentHelper.java:112) ~[?:?] {re:classloading} at net.minecraft.enchantment.EnchantmentHelper.func_151385_b(EnchantmentHelper.java:157) ~[?:?] {re:classloading} at net.minecraft.entity.player.PlayerEntity.func_71059_n(PlayerEntity.java:1190) ~[?:?] {re:classloading,pl:accesstransformer:B,xf:fml:charm:PlayerEntity} at net.minecraft.client.multiplayer.PlayerController.func_78764_a(PlayerController.java:347) ~[?:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.func_147116_af(Minecraft.java:1220) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.func_184117_aA(Minecraft.java:1538) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1375) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.func_195542_b(Minecraft.java:904) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:553) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.main.Main.main(SourceFile:204) ~[1.15.2-forge-31.2.5.jar:?] {re:classloading} at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_241] {} at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_241] {} at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_241] {} at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_241] {} at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:51) ~[forge-1.15.2-31.2.5.jar:31.2] {} at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-5.1.0.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-5.1.0.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-5.1.0.jar:?] {} at cpw.mods.modlauncher.Launcher.run(Launcher.java:81) [modlauncher-5.1.0.jar:?] {} at cpw.mods.modlauncher.Launcher.main(Launcher.java:65) [modlauncher-5.1.0.jar:?] {}