Funwayguy / OreExcavation

Ore Excavation issue tracker
5 stars 0 forks source link

Veinmining Block Entities with NBT crashes server #41

Open Tebreca opened 2 years ago

Tebreca commented 2 years ago

As i cannot see the code i can't figure out the exact problem for you, nor can I come up with a fix. But for both chests and furnaces (and looking at the error probably every NBT-saving BlockEntity) veinmining it wil throw a NoSuchMethodException

error:

[15:14:37] [Server thread/ERROR]: Exception caught during firing event: 'net.minecraft.nbt.CompoundTag net.minecraft.world.level.block.entity.BlockEntity.save(net.minecraft.nbt.CompoundTag)'
        Index: 8
        Listeners:
                0: HIGH
                1: ASM: class dev.architectury.event.forge.EventHandlerImplCommon event(Lnet/minecraftforge/event/TickEvent$ServerTickEvent;)V
                2: NORMAL
                3: ASM: class shadows.placebo.util.PlaceboTaskQueue tick(Lnet/minecraftforge/event/TickEvent$ServerTickEvent;)V
                4: ASM: net.minecraftforge.common.ForgeInternalHandler@62e32fdb onServerTick(Lnet/minecraftforge/event/TickEvent$ServerTickEvent;)V
                5: ASM: class com.simibubi.create.events.CommonEvents onServerTick(Lnet/minecraftforge/event/TickEvent$ServerTickEvent;)V
                6: ASM: class com.hollingsworth.arsnouveau.api.event.EventQueue serverTick(Lnet/minecraftforge/event/TickEvent$ServerTickEvent;)V
                7: ASM: journeymap.common.events.ForgeEvents@2123a62 onServerTickEvent(Lnet/minecraftforge/event/TickEvent$ServerTickEvent;)V
                8: ASM: class oreexcavation.handlers.EventHandler onTick(Lnet/minecraftforge/event/TickEvent$ServerTickEvent;)V
java.lang.NoSuchMethodError: 'net.minecraft.nbt.CompoundTag net.minecraft.world.level.block.entity.BlockEntity.save(net.minecraft.nbt.CompoundTag)'
        at TRANSFORMER/oreexcavation@1.10.159/oreexcavation.handlers.MiningAgent.tickMiner(Unknown Source)
        at TRANSFORMER/oreexcavation@1.10.159/oreexcavation.handlers.MiningScheduler.tickAgents(Unknown Source)
        at TRANSFORMER/oreexcavation@1.10.159/oreexcavation.handlers.EventHandler.onTick(Unknown Source)
        at net.minecraftforge.eventbus.ASMEventHandler_474_EventHandler_onTick_ServerTickEvent.invoke(.dynamic)
        at MC-BOOTSTRAP/eventbus@5.0.3/net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85)
        at MC-BOOTSTRAP/eventbus@5.0.3/net.minecraftforge.eventbus.EventBus.post(EventBus.java:302)
        at MC-BOOTSTRAP/eventbus@5.0.3/net.minecraftforge.eventbus.EventBus.post(EventBus.java:283)
        at TRANSFORMER/forge@39.0.59/net.minecraftforge.event.ForgeEventFactory.onPostServerTick(ForgeEventFactory.java:886)
        at TRANSFORMER/minecraft@1.18.1/net.minecraft.server.MinecraftServer.m_5705_(MinecraftServer.java:845)
        at TRANSFORMER/minecraft@1.18.1/net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:668)
        at TRANSFORMER/minecraft@1.18.1/net.minecraft.server.MinecraftServer.m_177918_(MinecraftServer.java:258)
        at java.base/java.lang.Thread.run(Thread.java:833)

[15:14:37] [Server thread/ERROR]: Encountered an unexpected exception
java.lang.NoSuchMethodError: 'net.minecraft.nbt.CompoundTag net.minecraft.world.level.block.entity.BlockEntity.save(net.minecraft.nbt.CompoundTag)'
        at oreexcavation.handlers.MiningAgent.tickMiner(Unknown Source) ~[OreExcavation-1.10.159.jar%2354!/:?]
        at oreexcavation.handlers.MiningScheduler.tickAgents(Unknown Source) ~[OreExcavation-1.10.159.jar%2354!/:?]
        at oreexcavation.handlers.EventHandler.onTick(Unknown Source) ~[OreExcavation-1.10.159.jar%2354!/:?]
        at net.minecraftforge.eventbus.ASMEventHandler_474_EventHandler_onTick_ServerTickEvent.invoke(.dynamic) ~[?:?]
        at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85) ~[eventbus-5.0.3.jar%232!/:?]
        at net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) ~[eventbus-5.0.3.jar%232!/:?]
        at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) ~[eventbus-5.0.3.jar%232!/:?]
        at net.minecraftforge.event.ForgeEventFactory.onPostServerTick(ForgeEventFactory.java:886) ~[forge-1.18.1-39.0.59-universal.jar%2369!/:?]
        at net.minecraft.server.MinecraftServer.m_5705_(MinecraftServer.java:845) ~[server-1.18.1-20211210.034407-srg.jar%2365!/:?]
        at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:668) ~[server-1.18.1-20211210.034407-srg.jar%2365!/:?]
        at net.minecraft.server.MinecraftServer.m_177918_(MinecraftServer.java:258) ~[server-1.18.1-20211210.034407-srg.jar%2365!/:?]
emihead commented 2 years ago

Just had this same issue with trying to veinmine FramedBlocks blocks