hammertater / treechop

MIT License
24 stars 11 forks source link

Tree Chop Exception with PMMO #284

Open servicomcr opened 5 months ago

servicomcr commented 5 months ago

[01:57:34] [Server thread/ERROR] [treechop/]: Something went wrong - please share this log file at https://github.com/hammertater/treechop/issues

ht.treechop.TreeChopException: Parameters: ServerPlayer['roshitocr'/38185, l='ServerLevel[raroland]', x=-1122.50, y=69.00, z=-607.79], ServerLevel[raroland], BlockPos{x=-1120, y=69, z=-608}, Block{minecraft:cherry_log}[axis=y], 1 iron_axe, net.minecraftforge.event.level.BlockEvent$BreakEvent@2db72ec0, 1, true, true

at ht.treechop.common.chop.ChopUtil.chop(ChopUtil.java:230) ~[TreeChop-1.20.1-forge-0.19.0.jar%23246!/:0.19.0] {re:classloading}

at ht.treechop.common.chop.ChopUtil.chop(ChopUtil.java:220) ~[TreeChop-1.20.1-forge-0.19.0.jar%23246!/:0.19.0] {re:classloading}

at ht.treechop.common.ForgeCommon.onBreakEvent(ForgeCommon.java:40) ~[TreeChop-1.20.1-forge-0.19.0.jar%23246!/:0.19.0] {re:classloading}

at ht.treechop.common.__ForgeCommon_onBreakEvent_BreakEvent.invoke(.dynamic) ~[TreeChop-1.20.1-forge-0.19.0.jar%23246!/:0.19.0] {re:classloading,pl:eventbus:B}

at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:73) ~[eventbus-6.0.5.jar%2352!/:?] {}

at net.minecraftforge.eventbus.EventBus.post(EventBus.java:315) ~[eventbus-6.0.5.jar%2352!/:?] {}

at net.minecraftforge.eventbus.EventBus.post(EventBus.java:296) ~[eventbus-6.0.5.jar%2352!/:?] {}

at net.minecraftforge.common.ForgeHooks.onBlockBreakEvent(ForgeHooks.java:543) ~[forge-1.20.1-47.2.32-universal.jar%23256!/:?] {re:mixin,re:classloading,pl:mixin:APP:apoli.mixins.json:forge.ForgeHooksMixin,pl:mixin:A}

at net.minecraft.server.level.ServerPlayerGameMode.m9280(ServerPlayerGameMode.java:229) ~[server-1.20.1-20230612.114412-srg.jar%23251!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:pehkui.mixins.json:reach.compat119plus.ServerPlayerInteractionManagerMixin,pl:mixin:APP:origins_classes.mixins.json:common.minecraft.ServerPlayerGameModeMixin,pl:mixin:A}

at net.minecraft.server.level.ServerPlayerGameMode.m215116(ServerPlayerGameMode.java:218) ~[server-1.20.1-20230612.114412-srg.jar%23251!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:pehkui.mixins.json:reach.compat119plus.ServerPlayerInteractionManagerMixin,pl:mixin:APP:origins_classes.mixins.json:common.minecraft.ServerPlayerGameModeMixin,pl:mixin:A}

at net.minecraft.server.level.ServerPlayerGameMode.m214168(ServerPlayerGameMode.java:188) ~[server-1.20.1-20230612.114412-srg.jar%23251!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:pehkui.mixins.json:reach.compat119plus.ServerPlayerInteractionManagerMixin,pl:mixin:APP:origins_classes.mixins.json:common.minecraft.ServerPlayerGameModeMixin,pl:mixin:A}

at net.minecraft.server.network.ServerGamePacketListenerImpl.m7502(ServerGamePacketListenerImpl.java:1020) ~[server-1.20.1-20230612.114412-srg.jar%23251!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:pehkui.mixins.json:ServerPlayNetworkHandlerMixin,pl:mixin:APP:pehkui.mixins.json:reach.compat119plus.ServerPlayNetworkHandlerMixin,pl:mixin:APP:apoli.mixins.json:ServerPlayNetworkHandlerMixin,pl:mixin:APP:inventorio.mixins.json:ServerPlayNetworkHandlerMixin,pl:mixin:APP:apugli.mixins.json:common.ServerPlayNetworkHandlerMixin,pl:mixin:APP:apugli.forge.mixins.json:common.ServerGamePacketListenerImplMixin,pl:mixin:A}

at net.minecraft.network.protocol.game.ServerboundPlayerActionPacket.m5797(ServerboundPlayerActionPacket.java:42) ~[server-1.20.1-20230612.114412-srg.jar%23251!/:?] {re:mixin,re:classloading}

at net.minecraft.network.protocol.game.ServerboundPlayerActionPacket.m5797(ServerboundPlayerActionPacket.java:8) ~[server-1.20.1-20230612.114412-srg.jar%23251!/:?] {re:mixin,re:classloading}

at net.minecraft.network.protocol.PacketUtils.m263899(PacketUtils.java:22) ~[server-1.20.1-20230612.114412-srg.jar%23251!/:?] {re:classloading}

at net.minecraft.server.TickTask.run(TickTask.java:18) ~[server-1.20.1-20230612.114412-srg.jar%23251!/:?] {re:classloading}

at net.minecraft.util.thread.BlockableEventLoop.m6367(BlockableEventLoop.java:156) ~[server-1.20.1-20230612.114412-srg.jar%23251!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}

at net.minecraft.util.thread.ReentrantBlockableEventLoop.m6367(ReentrantBlockableEventLoop.java:23) ~[server-1.20.1-20230612.114412-srg.jar%23251!/:?] {re:mixin,re:computing_frames,re:classloading}

at net.minecraft.server.MinecraftServer.m6367(MinecraftServer.java:770) ~[server-1.20.1-20230612.114412-srg.jar%23251!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A}

at net.minecraft.server.MinecraftServer.m6367(MinecraftServer.java:161) ~[server-1.20.1-20230612.114412-srg.jar%23251!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A}

at net.minecraft.util.thread.BlockableEventLoop.m7245(BlockableEventLoop.java:130) ~[server-1.20.1-20230612.114412-srg.jar%23251!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}

at net.minecraft.server.MinecraftServer.m129961(MinecraftServer.java:753) ~[server-1.20.1-20230612.114412-srg.jar%23251!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A}

at net.minecraft.server.MinecraftServer.m7245(MinecraftServer.java:747) ~[server-1.20.1-20230612.114412-srg.jar%23251!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A}

at net.minecraft.util.thread.BlockableEventLoop.m18701(BlockableEventLoop.java:139) ~[server-1.20.1-20230612.114412-srg.jar%23251!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}

at net.minecraft.server.MinecraftServer.m130012(MinecraftServer.java:733) ~[server-1.20.1-20230612.114412-srg.jar%23251!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A}

at net.minecraft.server.MinecraftServer.m130011(MinecraftServer.java:665) ~[server-1.20.1-20230612.114412-srg.jar%23251!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A}

at net.minecraft.server.MinecraftServer.m206580(MinecraftServer.java:251) ~[server-1.20.1-20230612.114412-srg.jar%23251!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A}

at java.lang.Thread.run(Thread.java:1583) ~[?:?] {}

Caused by: java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0

at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:100) ~[?:?] {}

at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:106) ~[?:?] {}

at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:302) ~[?:?] {}

at java.util.Objects.checkIndex(Objects.java:385) ~[?:?] {re:mixin}

at java.util.ArrayList.get(ArrayList.java:427) ~[?:?] {re:mixin}

at harmonised.pmmo.features.loot_modifiers.TreasureLootModifier.doApply(TreasureLootModifier.java:78) ~[pmmo-1.20.1-1.3.21.jar%23232!/:1.20.1-1.3.21] {re:classloading}

at net.minecraftforge.common.loot.LootModifier.apply(LootModifier.java:58) ~[forge-1.20.1-47.2.32-universal.jar%23256!/:?] {re:classloading}

at net.minecraftforge.common.ForgeHooks.modifyLoot(ForgeHooks.java:1186) ~[forge-1.20.1-47.2.32-universal.jar%23256!/:?] {re:mixin,re:classloading,pl:mixin:APP:apoli.mixins.json:forge.ForgeHooksMixin,pl:mixin:A}

at net.minecraft.world.level.storage.loot.LootTable.m230922(LootTable.java:118) ~[server-1.20.1-20230612.114412-srg.jar%23251!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A}

at net.minecraft.world.level.storage.loot.LootTable.m287195(LootTable.java:112) ~[server-1.20.1-20230612.114412-srg.jar%23251!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A}

at ht.treechop.common.block.ChoppedLogBlock.chop(ChoppedLogBlock.java:235) ~[TreeChop-1.20.1-forge-0.19.0.jar%23246!/:0.19.0] {re:classloading}

at ht.treechop.common.chop.Chop.apply(Chop.java:33) ~[TreeChop-1.20.1-forge-0.19.0.jar%23246!/:0.19.0] {re:classloading}

at ht.treechop.common.chop.ChopTreeResult.lambda$apply$0(ChopTreeResult.java:27) ~[TreeChop-1.20.1-forge-0.19.0.jar%23246!/:0.19.0] {re:classloading}

at java.util.Vector.forEach(Vector.java:1359) ~[?:?] {}

at ht.treechop.common.chop.ChopTreeResult.apply(ChopTreeResult.java:27) ~[TreeChop-1.20.1-forge-0.19.0.jar%23246!/:0.19.0] {re:classloading}

at ht.treechop.common.chop.ChopUtil.chopUnsafe(ChopUtil.java:260) ~[TreeChop-1.20.1-forge-0.19.0.jar%23246!/:0.19.0] {re:classloading}

at ht.treechop.common.chop.ChopUtil.chop(ChopUtil.java:228) ~[TreeChop-1.20.1-forge-0.19.0.jar%23246!/:0.19.0] {re:classloading}

... 27 more

LOG Full debug.log latest.log

hammertater commented 4 months ago

Thanks for reporting. Looks like a conflict with Project MMO, it could be on my side. I'll get it fixed.

servicomcr commented 4 months ago

Thanks for your prompt response, you haven't thought about making this mod for a plugin :) it would be great to have it on my other server

hammertater commented 4 months ago

Hey, it might be possible to make a plugin version, but none of the visual features would work. I'll think about it!