
Shueldbreaker test error
Melechaiah opened this issue ยท 4 comments
Using Just forge 47.3.33 on minecraft 1.20.1 and the base apoptheosis mods. the following happens. in log.
41 instances of shieldbreaker test error. covering 15000 lines on dedicated server.
[03Mar2025 01:38:09.942] [main/ERROR] [Apotheosis : Adventure/]: Failed to execute ShieldBreakerTest java.lang.NullPointerException: Cannot invoke "net.minecraft.world.entity.LivingEntity.m_213824_()" because "attacker" is null at net.minecraftforge.common.extensions.IForgeItem.canDisableShield(IForgeItem.java:695) ~[forge-1.20.1-47.3.33-universal.jar%23590!/:?] at net.minecraftforge.common.extensions.IForgeItemStack.canDisableShield(IForgeItemStack.java:233) ~[forge-1.20.1-47.3.33-universal.jar%23590!/:?] at dev.shadowsoffire.apotheosis.adventure.loot.ShieldBreakerTest.test(ShieldBreakerTest.java:48) ~[Apotheosis-1.20.1-7.4.6.jar%23356!/:7.4.6] at dev.shadowsoffire.apotheosis.adventure.loot.ShieldBreakerTest.test(ShieldBreakerTest.java:25) ~[Apotheosis-1.20.1-7.4.6.jar%23356!/:7.4.6] at dev.shadowsoffire.apotheosis.adventure.loot.LootCategory.isValid(LootCategory.java:89) ~[Apotheosis-1.20.1-7.4.6.jar%23356!/:7.4.6] at dev.shadowsoffire.apotheosis.adventure.loot.LootCategory.forItem(LootCategory.java:182) ~[Apotheosis-1.20.1-7.4.6.jar%23356!/:7.4.6] at dev.shadowsoffire.apotheosis.adventure.loot.AffixLootEntry.getType(AffixLootEntry.java:91) ~[Apotheosis-1.20.1-7.4.6.jar%23356!/:7.4.6] at dev.shadowsoffire.apotheosis.adventure.loot.AffixLootRegistry.validateItem(AffixLootRegistry.java:30) ~[Apotheosis-1.20.1-7.4.6.jar%23356!/:7.4.6] at dev.shadowsoffire.apotheosis.adventure.loot.AffixLootRegistry.validateItem(AffixLootRegistry.java:13) ~[Apotheosis-1.20.1-7.4.6.jar%23356!/:7.4.6] at dev.shadowsoffire.placebo.reload.DynamicRegistry.register(DynamicRegistry.java:322) ~[Placebo-1.20.1-8.6.2.jar%23525!/:8.6.2] at dev.shadowsoffire.placebo.reload.DynamicRegistry.lambda$apply$0(DynamicRegistry.java:143) ~[Placebo-1.20.1-8.6.2.jar%23525!/:8.6.2] at java.util.HashMap.forEach(HashMap.java:1429) ~[?:?] at dev.shadowsoffire.placebo.reload.DynamicRegistry.apply(DynamicRegistry.java:136) ~[Placebo-1.20.1-8.6.2.jar%23525!/:8.6.2] at dev.shadowsoffire.placebo.reload.DynamicRegistry.m_5787_(DynamicRegistry.java:62) ~[Placebo-1.20.1-8.6.2.jar%23525!/:8.6.2] at net.minecraft.server.packs.resources.SimplePreparableReloadListener.m_10789_(SimplePreparableReloadListener.java:13) ~[server-1.20.1-20230612.114412-srg.jar%23585!/:?] at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:718) ~[?:?] at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482) ~[?:?] at net.minecraft.server.packs.resources.SimpleReloadInstance.m_143940_(SimpleReloadInstance.java:69) ~[server-1.20.1-20230612.114412-srg.jar%23585!/:?] at net.minecraft.Util.m_214652_(Util.java:783) ~[server-1.20.1-20230612.114412-srg.jar%23585!/:?] at net.minecraft.Util.m_214679_(Util.java:772) ~[server-1.20.1-20230612.114412-srg.jar%23585!/:?] at net.minecraft.server.Main.main(Main.java:166) ~[server-1.20.1-20230612.114412-srg.jar%23585!/:?] at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:580) ~[?:?] at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.runTarget(CommonLaunchHandler.java:111) ~[fmlloader-1.20.1-47.3.33.jar%2369!/:?] at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.serverService(CommonLaunchHandler.java:103) ~[fmlloader-1.20.1-47.3.33.jar%2369!/:?] at net.minecraftforge.fml.loading.targets.CommonServerLaunchHandler.lambda$makeService$0(CommonServerLaunchHandler.java:27) ~[fmlloader-1.20.1-47.3.33.jar%2369!/:?] at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) ~[modlauncher-10.0.9.jar%2355!/:?] at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) ~[modlauncher-10.0.9.jar%2355!/:?] at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) ~[modlauncher-10.0.9.jar%2355!/:?] at cpw.mods.modlauncher.Launcher.run(Launcher.java:108) ~[modlauncher-10.0.9.jar%2355!/:?] at cpw.mods.modlauncher.Launcher.main(Launcher.java:78) ~[modlauncher-10.0.9.jar%2355!/:?] at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) ~[modlauncher-10.0.9.jar%2355!/:?] at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) ~[modlauncher-10.0.9.jar%2355!/:?] at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) ~[bootstraplauncher-1.1.2.jar:?]
See #1491
allright. fair enough. is this a change that is going to be reverted on forge side?
I have a few mods that now require this forge version, which means i have to start choosing mods.
additional. These lines are now gone
Running an updated version of my modpack. removed a few things and added a few things. and shieldbreaker issues are now completely gone from my logs. I have no idea what in particular it is. but ill get back to you.
I think its a compatability problem with a mod rather than with forge itself.