Project MMO

Project MMO

10M Downloads

[1.21.1] Error When Breaking Blocks

SomewhatDamaged opened this issue ยท 0 comments

commented

Describe the bug
Punch block until breaks, block doesn't break, and there's an error in the server log.

Expected behavior
Block should break.

Log

[07:42:20] [Server thread/ERROR] [minecraft/ServerPacketListener]: Failed to handle packet net.minecraft.network.protocol.game.ServerboundPlayerActionPacket@2a6cb8ee, suppressing error
java.lang.IllegalStateException: Cannot get config value before config is loaded.
        at MC-BOOTSTRAP/[email protected]/com.google.common.base.Preconditions.checkState(Preconditions.java:512) ~[guava-32.1.2-jre.jar%2383!/:?] {re:mixin}
        at TRANSFORMER/[email protected]/net.neoforged.neoforge.common.ModConfigSpec$ConfigValue.getRaw(ModConfigSpec.java:1235) ~[neoforge-21.1.81-universal.jar%23476!/:?] {re:mixin,re:classloading}
        at TRANSFORMER/[email protected]/net.neoforged.neoforge.common.ModConfigSpec$ConfigValue.get(ModConfigSpec.java:1222) ~[neoforge-21.1.81-universal.jar%23476!/:?] {re:mixin,re:classloading}
        at TRANSFORMER/[email protected]/harmonised.pmmo.core.perks.PerksImpl.lambda$static$0(PerksImpl.java:46) ~[pmmo-1.21.1-2.4.14.jar%23726!/:?] {re:classloading}
        at TRANSFORMER/[email protected]/harmonised.pmmo.api.perks.Perk.start(Perk.java:96) ~[pmmo-1.21.1-2.4.14.jar%23726!/:?] {re:classloading}
        at TRANSFORMER/[email protected]/harmonised.pmmo.registry.PerkRegistry.lambda$executePerk$3(PerkRegistry.java:73) ~[pmmo-1.21.1-2.4.14.jar%23726!/:?] {re:classloading}
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ~[?:?] {re:mixin}
        at TRANSFORMER/[email protected]/harmonised.pmmo.registry.PerkRegistry.executePerk(PerkRegistry.java:60) ~[pmmo-1.21.1-2.4.14.jar%23726!/:?] {re:classloading}
        at TRANSFORMER/[email protected]/harmonised.pmmo.events.impl.BreakSpeedHandler.handle(BreakSpeedHandler.java:67) ~[pmmo-1.21.1-2.4.14.jar%23726!/:?] {re:classloading}
        at TRANSFORMER/[email protected]/harmonised.pmmo.events.EventHandler.onBreakSpeed(EventHandler.java:153) ~[pmmo-1.21.1-2.4.14.jar%23726!/:?] {re:classloading}
        at MC-BOOTSTRAP/net.neoforged.bus/net.neoforged.bus.SubscribeEventListener.invoke(SubscribeEventListener.java:49) ~[bus-8.0.2.jar%2367!/:?] {}
        at MC-BOOTSTRAP/net.neoforged.bus/net.neoforged.bus.EventBus.post(EventBus.java:350) ~[bus-8.0.2.jar%2367!/:?] {}
        at MC-BOOTSTRAP/net.neoforged.bus/net.neoforged.bus.EventBus.post(EventBus.java:315) ~[bus-8.0.2.jar%2367!/:?] {}
        at TRANSFORMER/[email protected]/net.neoforged.neoforge.event.EventHooks.getBreakSpeed(EventHooks.java:214) ~[neoforge-21.1.81-universal.jar%23476!/:?] {re:mixin,re:classloading}
        at TRANSFORMER/[email protected]/net.minecraft.world.entity.player.Player.getDigSpeed(Player.java:779) ~[server-1.21.1-20240808.144430-srg.jar%23475!/:?] {re:computing_frames,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:supplementaries-common.mixins.json:PlayerMixin from mod supplementaries,pl:mixin:APP:supplementaries-common.mixins.json:PlayerProjectileMixin from mod supplementaries,pl:mixin:APP:eternal_starlight-common.mixins.json:PlayerMixin from mod eternal_starlight,pl:mixin:APP:tombstone.mixins.json:PlayerMixin from mod tombstone,pl:mixin:APP:the_bumblezone-common.mixins.json:entities.PlayerMixin from mod the_bumblezone,pl:mixin:APP:the_bumblezone-common.mixins.json:entities.PlayerTimeInAirMixin from mod the_bumblezone,pl:mixin:APP:the_bumblezone-common.mixins.json:items.PlayerDamageShieldInvoker from mod the_bumblezone,pl:mixin:APP:livingthings.mixins.json:PlayerMixin from mod livingthings,pl:mixin:APP:ars_nouveau.mixins.json:elytra.ElytraPlayerMixin from mod ars_nouveau,pl:mixin:APP:apothic_attributes.mixins.json:PlayerMixin from mod apothic_attributes,pl:mixin:APP:dummmmmmy-common.mixins.json:PlayerMixin from mod dummmmmmy,pl:mixin:APP:comforts.mixins.json:AccessorPlayer from mod comforts,pl:mixin:APP:mixins.artifacts.common.json:ability.applyeffectsaftereating.PlayerMixin from mod artifacts,pl:mixin:APP:mixins.artifacts.common.json:attribute.PlayerMixin from mod artifacts,pl:mixin:APP:mixins.artifacts.neoforge.json:ability.sinking.PlayerMixin from mod artifacts,pl:mixin:APP:forbidden_arcanus.mixins.json:PlayerMixin from mod forbidden_arcanus,pl:mixin:APP:irons_spellbooks.mixins.json:PlayerMixin from mod irons_spellbooks,pl:mixin:APP:expandability-common.mixins.json:swimming.PlayerMixin from mod expandability,pl:mixin:APP:kubejs.mixins.json:PlayerMixin from mod kubejs,pl:mixin:A}
        at TRANSFORMER/[email protected]/net.minecraft.world.level.block.state.BlockBehaviour.getDestroyProgress(BlockBehaviour.java:349) ~[server-1.21.1-20240808.144430-srg.jar%23475!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:modernfix-common.mixins.json:perf.reduce_blockstate_cache_rebuilds.BlockBehaviourInvoker from mod modernfix,pl:mixin:APP:bettermineshafts.mixins.json:BlockBehaviourAccessor from mod bettermineshafts,pl:mixin:APP:ars_nouveau.mixins.json:BlockBehaviourAccessor from mod ars_nouveau,pl:mixin:APP:chipped-common.mixins.json:BlockBehaviourMixin from mod chipped,pl:mixin:APP:kubejs.mixins.json:BlockBehaviourMixin from mod kubejs,pl:mixin:A}
        at TRANSFORMER/[email protected]/net.minecraft.world.level.block.state.BlockBehaviour$BlockStateBase.getDestroyProgress(MixinBlockStateBase.java:613) ~[server-1.21.1-20240808.144430-srg.jar%23475!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:modernfix-common.mixins.json:bugfix.chunk_deadlock.BlockStateBaseMixin from mod modernfix,pl:mixin:APP:modernfix-common.mixins.json:perf.reduce_blockstate_cache_rebuilds.BlockStateBaseMixin from mod modernfix,pl:mixin:APP:framedblocks.mixin.json:MixinBlockStateBase from mod framedblocks,pl:mixin:APP:mekanismcovers.mixins.json:BlockStateBaseMixin from mod mekanismcovers,pl:mixin:APP:immersiveengineering.mixins.json:coremods.AbstractBlockStateMixin from mod immersiveengineering,pl:mixin:APP:mixins.integrateddynamics.json:MixinBlockStateBase from mod integrateddynamics,pl:mixin:APP:ars_nouveau.mixins.json:redstone.RedstoneLevelMixin from mod ars_nouveau,pl:mixin:APP:kubejs.mixins.json:BlockStateBaseMixin from mod kubejs,pl:mixin:APP:xycraft_core.mixins.json:BlockBehaviourEventMixin from mod xycraft_core,pl:mixin:APP:modern_industrialization.mixins.json:BlockStateBaseMixin from mod modern_industrialization,pl:mixin:APP:ferritecore.blockstatecache.mixin.json:BlockStateBaseMixin from mod ferritecore,pl:mixin:APP:expandability-common.mixins.json:fluidcollision.BlockStateBaseMixin from mod expandability,pl:mixin:A}
        at TRANSFORMER/[email protected]/net.minecraft.server.level.ServerPlayerGameMode.handleBlockBreakAction(ServerPlayerGameMode.java:183) ~[server-1.21.1-20240808.144430-srg.jar%23475!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A}
        at TRANSFORMER/[email protected]/net.minecraft.server.network.ServerGamePacketListenerImpl.handlePlayerAction(ServerGamePacketListenerImpl.java:1081) ~[server-1.21.1-20240808.144430-srg.jar%23475!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:supplementaries-common.mixins.json:ServerGamePacketListenerMixin from mod supplementaries,pl:mixin:APP:servercore.common.mixins.json:features.misc.ServerGamePacketListenerImplMixin from mod servercore,pl:mixin:APP:the_bumblezone-common.mixins.json:gameplay.ServerGamePacketListenerImplAccessor from mod the_bumblezone,pl:mixin:APP:the_bumblezone-common.mixins.json:entities.ServerGamePacketListenerImplMixin from mod the_bumblezone,pl:mixin:APP:immersiveengineering.mixins.json:accessors.ServerPlayNetHandlerAccess from mod immersiveengineering,pl:mixin:APP:imfast.mixins.json:VelocityMixin from mod imfast,pl:mixin:APP:ftbquests-common.mixins.json:ServerGamePacketListenerImplMixin from mod ftbquests,pl:mixin:APP:mixins.artifacts.common.json:item.umbrella.server.ServerGamePacketListenerImplMixin from mod artifacts,pl:mixin:APP:expandability-common.mixins.json:swimming.server.ServerGamePacketListenerImplMixin from mod expandability,pl:mixin:A}
        at TRANSFORMER/[email protected]/net.minecraft.network.protocol.game.ServerboundPlayerActionPacket.handle(ServerboundPlayerActionPacket.java:50) ~[server-1.21.1-20240808.144430-srg.jar%23475!/:?] {re:classloading}
        at TRANSFORMER/[email protected]/net.minecraft.network.protocol.game.ServerboundPlayerActionPacket.handle(ServerboundPlayerActionPacket.java:10) ~[server-1.21.1-20240808.144430-srg.jar%23475!/:?] {re:classloading}
        at TRANSFORMER/[email protected]/net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:27) ~[server-1.21.1-20240808.144430-srg.jar%23475!/:?] {re:classloading}
        at TRANSFORMER/[email protected]/net.minecraft.server.TickTask.run(TickTask.java:18) ~[server-1.21.1-20240808.144430-srg.jar%23475!/:?] {re:classloading,re:mixin}
        at TRANSFORMER/[email protected]/net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:148) ~[server-1.21.1-20240808.144430-srg.jar%23475!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:modernfix-common.mixins.json:perf.fix_loop_spin_waiting.BlockableEventLoopMixin from mod modernfix,pl:mixin:A}
        at TRANSFORMER/[email protected]/net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:23) ~[server-1.21.1-20240808.144430-srg.jar%23475!/:?] {re:mixin,re:computing_frames,re:classloading}
        at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:872) ~[server-1.21.1-20240808.144430-srg.jar%23475!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A}
        at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:170) ~[server-1.21.1-20240808.144430-srg.jar%23475!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A}
        at TRANSFORMER/[email protected]/net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:122) ~[server-1.21.1-20240808.144430-srg.jar%23475!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:modernfix-common.mixins.json:perf.fix_loop_spin_waiting.BlockableEventLoopMixin from mod modernfix,pl:mixin:A}
        at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:855) ~[server-1.21.1-20240808.144430-srg.jar%23475!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A}
        at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:849) ~[server-1.21.1-20240808.144430-srg.jar%23475!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A}
        at TRANSFORMER/[email protected]/net.minecraft.util.thread.BlockableEventLoop.runAllTasks(BlockableEventLoop.java:111) ~[server-1.21.1-20240808.144430-srg.jar%23475!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:modernfix-common.mixins.json:perf.fix_loop_spin_waiting.BlockableEventLoopMixin from mod modernfix,pl:mixin:A}
        at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:825) ~[server-1.21.1-20240808.144430-srg.jar%23475!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A}
        at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:712) ~[server-1.21.1-20240808.144430-srg.jar%23475!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A}
        at TRANSFORMER/[email protected]/net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:267) ~[server-1.21.1-20240808.144430-srg.jar%23475!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A}
        at java.base/java.lang.Thread.run(Thread.java:1583) [?:?] {re:mixin}

Versions:

  • Minecraft: 1.21.1
  • Loader: NF-21.1.81
  • PMMO: 1.21.1-2.4.14

Additional context
I am guessing this is yet another mod with weird values that cause this. Maybe there should be a default-fallback for all cases of "0"?