Closed ZackaRiz closed 1 year ago
It happens when you breed two bees that can't be bred and won't produce an offspring and Majrusz library can't handle it because they expect there to always be an offspring. I told them about it earlier today, but didn't get a response from them.
the "fix" is to take out Majrusz library, load the world, stop the bees from copulating and then put the mod back in and don't breed unbreedable bees again (or use the breeding chamber to be sure)
alternatively you can also try enabling the Forge config that fixes ticking entities or install https://www.curseforge.com/minecraft/mc-mods/neruina
Perfect neruina mod work for me ! ( https://www.curseforge.com/minecraft/mc-mods/neruina )
We can close the issue and wait for the Majrusz library fix. Neruina's alternative solution works well
The mode worked fine until a bee spawn spawned a baby bee which crashed the game once loaded !
Here is the error logs ( I add the complete logs as attachments because I have other mods present ) latest.log
---->
_[05août2023 19:39:04.087] [Server thread/ERROR] [net.minecraftforge.eventbus.EventBus/EVENTBUS]: Exception caught during firing event: Cannot invoke "net.minecraft.world.entity.Entity.m9236()" because the return value of "com.mlib.gamemodifiers.data.IEntityData.getEntity()" is null Index: 1 Listeners: 0: NORMAL 1: ASM: class com.mlib.gamemodifiers.contexts.OnBabySpawn onBreed(Lnet/minecraftforge/event/entity/living/BabyEntitySpawnEvent;)V java.lang.NullPointerException: Cannot invoke "net.minecraft.world.entity.Entity.m9236()" because the return value of "com.mlib.gamemodifiers.data.IEntityData.getEntity()" is null at TRANSFORMER/mlib@4.3.2/com.mlib.gamemodifiers.data.IEntityData.getLevel(IEntityData.java:11) at TRANSFORMER/mlib@4.3.2/com.mlib.gamemodifiers.data.ILevelData.getProfiler(ILevelData.java:18) at TRANSFORMER/mlib@4.3.2/com.mlib.gamemodifiers.Contexts.dispatch(Contexts.java:35) at TRANSFORMER/mlib@4.3.2/com.mlib.gamemodifiers.contexts.OnBabySpawn.onBreed(OnBabySpawn.java:25) at TRANSFORMER/mlib@4.3.2/com.mlib.gamemodifiers.contexts.__OnBabySpawn_onBreed_BabyEntitySpawnEvent.invoke(.dynamic) at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:73) at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.EventBus.post(EventBus.java:315) at MC-BOOTSTRAP/net.minecraftforge.eventbus/net.minecraftforge.eventbus.EventBus.post(EventBus.java:296) at TRANSFORMER/minecraft@1.20.1/net.minecraft.world.entity.animal.Animal.m27563(Animal.java:210) at TRANSFORMER/minecraft@1.20.1/net.minecraft.world.entity.ai.goal.BreedGoal.m8026(BreedGoal.java:80) at TRANSFORMER/minecraft@1.20.1/net.minecraft.world.entity.ai.goal.BreedGoal.m8037(BreedGoal.java:61) at TRANSFORMER/minecraft@1.20.1/net.minecraft.world.entity.ai.goal.WrappedGoal.m8037(WrappedGoal.java:65) at TRANSFORMER/minecraft@1.20.1/net.minecraft.world.entity.ai.goal.GoalSelector.m186081(GoalSelector.java:120) at TRANSFORMER/minecraft@1.20.1/net.minecraft.world.entity.ai.goal.GoalSelector.m25373(GoalSelector.java:111) at TRANSFORMER/minecraft@1.20.1/net.minecraft.world.entity.Mob.m6140(Mob.java:760) at TRANSFORMER/minecraft@1.20.1/net.minecraft.world.entity.LivingEntity.m8107(LivingEntity.java:2547) at TRANSFORMER/minecraft@1.20.1/net.minecraft.world.entity.Mob.m8107(Mob.java:536) at TRANSFORMER/minecraft@1.20.1/net.minecraft.world.entity.AgeableMob.m8107(AgeableMob.java:128) at TRANSFORMER/minecraft@1.20.1/net.minecraft.world.entity.animal.Animal.m8107(Animal.java:54) at TRANSFORMER/minecraft@1.20.1/net.minecraft.world.entity.animal.Bee.m8107(Bee.java:446) at TRANSFORMER/productivebees@1.20.1-12.1.3/cy.jdkdigital.productivebees.common.entity.bee.ConfigurableBee.m8107(ConfigurableBee.java:165) at TRANSFORMER/minecraft@1.20.1/net.minecraft.world.entity.LivingEntity.m8119(LivingEntity.java:2297) at TRANSFORMER/minecraft@1.20.1/net.minecraft.world.entity.Mob.m8119(Mob.java:337) at TRANSFORMER/minecraft@1.20.1/net.minecraft.world.entity.animal.Bee.m8119(Bee.java:246) at TRANSFORMER/productivebees@1.20.1-12.1.3/cy.jdkdigital.productivebees.common.entity.bee.ProductiveBee.m8119(ProductiveBee.java:150) at TRANSFORMER/productivebees@1.20.1-12.1.3/cy.jdkdigital.productivebees.common.entity.bee.ConfigurableBee.m8119(ConfigurableBee.java:116) at TRANSFORMER/minecraft@1.20.1/net.minecraft.server.level.ServerLevel.m8647(ServerLevel.java:693) at TRANSFORMER/minecraft@1.20.1/net.minecraft.world.level.Level.m46653(Level.java:479) at TRANSFORMER/minecraft@1.20.1/net.minecraft.server.level.ServerLevel.m184063(ServerLevel.java:343) at TRANSFORMER/minecraft@1.20.1/net.minecraft.world.level.entity.EntityTickList.m156910(EntityTickList.java:54) at TRANSFORMER/minecraft@1.20.1/net.minecraft.server.level.ServerLevel.m8793(ServerLevel.java:323) at TRANSFORMER/minecraft@1.20.1/net.minecraft.server.MinecraftServer.m5703(MinecraftServer.java:893) at TRANSFORMER/minecraft@1.20.1/net.minecraft.server.MinecraftServer.m5705(MinecraftServer.java:814) at TRANSFORMER/minecraft@1.20.1/net.minecraft.client.server.IntegratedServer.m5705(IntegratedServer.java:89) at TRANSFORMER/minecraft@1.20.1/net.minecraft.server.MinecraftServer.m130011(MinecraftServer.java:661) at TRANSFORMER/minecraft@1.20.1/net.minecraft.server.MinecraftServer.m206580(MinecraftServer.java:251) at java.base/java.lang.Thread.run(Thread.java:833)
[05août2023 19:39:04.184] [Server thread/ERROR] [net.minecraft.server.MinecraftServer/]: Encountered an unexpected exception net.minecraft.ReportedException: Ticking entity at net.minecraft.server.MinecraftServer.m5703(MinecraftServer.java:897) ~[client-1.20.1-20230612.114412-srg.jar%23460!/:?] at net.minecraft.server.MinecraftServer.m5705(MinecraftServer.java:814) ~[client-1.20.1-20230612.114412-srg.jar%23460!/:?] at net.minecraft.client.server.IntegratedServer.m5705(IntegratedServer.java:89) ~[client-1.20.1-20230612.114412-srg.jar%23460!/:?] at net.minecraft.server.MinecraftServer.m130011(MinecraftServer.java:661) ~[client-1.20.1-20230612.114412-srg.jar%23460!/:?] at net.minecraft.server.MinecraftServer.m206580(MinecraftServer.java:251) ~[client-1.20.1-20230612.114412-srg.jar%23460!/:?] at java.lang.Thread.run(Thread.java:833) ~[?:?] Caused by: java.lang.NullPointerException: Cannot invoke "net.minecraft.world.entity.Entity.m9236()" because the return value of "com.mlib.gamemodifiers.data.IEntityData.getEntity()" is null at com.mlib.gamemodifiers.data.IEntityData.getLevel(IEntityData.java:11) ~[majrusz-library-1.20-4.3.2.jar%23395!/:4.3.2] at com.mlib.gamemodifiers.data.ILevelData.getProfiler(ILevelData.java:18) ~[majrusz-library-1.20-4.3.2.jar%23395!/:4.3.2] at com.mlib.gamemodifiers.Contexts.dispatch(Contexts.java:35) ~[majrusz-library-1.20-4.3.2.jar%23395!/:4.3.2] at com.mlib.gamemodifiers.contexts.OnBabySpawn.onBreed(OnBabySpawn.java:25) ~[majrusz-library-1.20-4.3.2.jar%23395!/:4.3.2] at com.mlib.gamemodifiers.contexts.__OnBabySpawn_onBreed_BabyEntitySpawnEvent.invoke(.dynamic) ~[majrusz-library-1.20-4.3.2.jar%23395!/:4.3.2] at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:73) ~[eventbus-6.0.5.jar%2387!/:?] at net.minecraftforge.eventbus.EventBus.post(EventBus.java:315) ~[eventbus-6.0.5.jar%2387!/:?] at net.minecraftforge.eventbus.EventBus.post(EventBus.java:296) ~[eventbus-6.0.5.jar%2387!/:?] at net.minecraft.world.entity.animal.Animal.m27563(Animal.java:210) ~[client-1.20.1-20230612.114412-srg.jar%23460!/:?] at net.minecraft.world.entity.ai.goal.BreedGoal.m8026(BreedGoal.java:80) ~[client-1.20.1-20230612.114412-srg.jar%23460!/:?] at net.minecraft.world.entity.ai.goal.BreedGoal.m8037(BreedGoal.java:61) ~[client-1.20.1-20230612.114412-srg.jar%23460!/:?] at net.minecraft.world.entity.ai.goal.WrappedGoal.m8037(WrappedGoal.java:65) ~[client-1.20.1-20230612.114412-srg.jar%23460!/:?] at net.minecraft.world.entity.ai.goal.GoalSelector.m186081(GoalSelector.java:120) ~[client-1.20.1-20230612.114412-srg.jar%23460!/:?] at net.minecraft.world.entity.ai.goal.GoalSelector.m25373(GoalSelector.java:111) ~[client-1.20.1-20230612.114412-srg.jar%23460!/:?] at net.minecraft.world.entity.Mob.m6140(Mob.java:760) ~[client-1.20.1-20230612.114412-srg.jar%23460!/:?] at net.minecraft.world.entity.LivingEntity.m8107(LivingEntity.java:2547) ~[client-1.20.1-20230612.114412-srg.jar%23460!/:?] at net.minecraft.world.entity.Mob.m8107(Mob.java:536) ~[client-1.20.1-20230612.114412-srg.jar%23460!/:?] at net.minecraft.world.entity.AgeableMob.m8107(AgeableMob.java:128) ~[client-1.20.1-20230612.114412-srg.jar%23460!/:?] at net.minecraft.world.entity.animal.Animal.m8107(Animal.java:54) ~[client-1.20.1-20230612.114412-srg.jar%23460!/:?] at net.minecraft.world.entity.animal.Bee.m8107(Bee.java:446) ~[client-1.20.1-20230612.114412-srg.jar%23460!/:?] at cy.jdkdigital.productivebees.common.entity.bee.ConfigurableBee.m8107(ConfigurableBee.java:165) ~[productivebees-1.20.1-12.1.3.jar%23418!/:1.20.1-12.1.3] at net.minecraft.world.entity.LivingEntity.m8119(LivingEntity.java:2297) ~[client-1.20.1-20230612.114412-srg.jar%23460!/:?] at net.minecraft.world.entity.Mob.m8119(Mob.java:337) ~[client-1.20.1-20230612.114412-srg.jar%23460!/:?] at net.minecraft.world.entity.animal.Bee.m8119(Bee.java:246) ~[client-1.20.1-20230612.114412-srg.jar%23460!/:?] at cy.jdkdigital.productivebees.common.entity.bee.ProductiveBee.m8119(ProductiveBee.java:150) ~[productivebees-1.20.1-12.1.3.jar%23418!/:1.20.1-12.1.3] at cy.jdkdigital.productivebees.common.entity.bee.ConfigurableBee.m8119(ConfigurableBee.java:116) ~[productivebees-1.20.1-12.1.3.jar%23418!/:1.20.1-12.1.3] at net.minecraft.server.level.ServerLevel.m8647(ServerLevel.java:693) ~[client-1.20.1-20230612.114412-srg.jar%23460!/:?] at net.minecraft.world.level.Level.m46653(Level.java:479) ~[client-1.20.1-20230612.114412-srg.jar%23460!/:?] at net.minecraft.server.level.ServerLevel.m184063(ServerLevel.java:343) ~[client-1.20.1-20230612.114412-srg.jar%23460!/:?] at net.minecraft.world.level.entity.EntityTickList.m156910(EntityTickList.java:54) ~[client-1.20.1-20230612.114412-srg.jar%23460!/:?] at net.minecraft.server.level.ServerLevel.m8793(ServerLevel.java:323) ~[client-1.20.1-20230612.114412-srg.jar%23460!/:?] at net.minecraft.server.MinecraftServer.m5703(MinecraftServer.java:893) ~[client-1.20.1-20230612.114412-srg.jar%23460!/:?] ... 5 more_