FlashHUN / FlashNPCs

NPC mod for Minecraft 1.16.5+
GNU General Public License v3.0
22 stars 12 forks source link

No GUI appears #31

Closed MagmaSKV closed 2 years ago

MagmaSKV commented 2 years ago

Hello, I have a problem, I was trying to open the interface to create missions or edit NPCs but it does not open, and when I use the missions interface I get this on the console:

Failed to handle packet net.minecraft.network.protocol.game.ServerboundCustomPayloadPacket@4dc3e077, suppressing error java.lang.IndexOutOfBoundsException: readerIndex(1) + length(4) exceeds writerIndex(1): PooledUnsafeDirectByteBuf(ridx: 1, widx: 1, cap: 1) at io.netty.buffer.AbstractByteBuf.checkReadableBytes0(AbstractByteBuf.java:1442) ~[netty-all-4.1.68.Final.jar%2331!/:4.1.68.Final] at io.netty.buffer.AbstractByteBuf.readInt(AbstractByteBuf.java:809) ~[netty-all-4.1.68.Final.jar%2331!/:4.1.68.Final] at net.minecraft.network.FriendlyByteBuf.readInt(FriendlyByteBuf.java:949) ~[server-1.18.2-20220404.173914-srg.jar%23190!/:?] at flash.npcmod.network.packets.client.CRequestTrades.decode(CRequestTrades.java:29) ~[flashnpcs-1.18.1-1.1.3.jar%23113!/:1.1.3] at net.minecraftforge.network.simple.IndexedMessageCodec.lambda$tryDecode$0(IndexedMessageCodec.java:107) ~[forge-1.18.2-40.1.68-universal.jar%23195!/:?] at java.util.Optional.map(Optional.java:260) ~[?:?] at net.minecraftforge.network.simple.IndexedMessageCodec.tryDecode(IndexedMessageCodec.java:107) ~[forge-1.18.2-40.1.68-universal.jar%23195!/:?] at net.minecraftforge.network.simple.IndexedMessageCodec.consume(IndexedMessageCodec.java:153) ~[forge-1.18.2-40.1.68-universal.jar%23195!/:?] at net.minecraftforge.network.simple.SimpleChannel.networkEventListener(SimpleChannel.java:72) ~[forge-1.18.2-40.1.68-universal.jar%23195!/:?] at net.minecraftforge.eventbus.EventBus.doCastFilter(EventBus.java:247) ~[eventbus-5.0.3.jar%234!/:?] at net.minecraftforge.eventbus.EventBus.lambda$addListener$11(EventBus.java:239) ~[eventbus-5.0.3.jar%234!/:?] at net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) ~[eventbus-5.0.3.jar%234!/:?] at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) ~[eventbus-5.0.3.jar%234!/:?] at net.minecraftforge.network.NetworkInstance.dispatch(NetworkInstance.java:68) ~[forge-1.18.2-40.1.68-universal.jar%23195!/:?] at net.minecraftforge.network.NetworkHooks.lambda$onCustomPayload$1(NetworkHooksMixin.java:78) ~[forge-1.18.2-40.1.68-universal.jar%23195!/:?] at java.util.Optional.map(Optional.java:260) ~[?:?] at net.minecraftforge.network.NetworkHooks.onCustomPayload(NetworkHooksMixin.java:78) ~[forge-1.18.2-40.1.68-universal.jar%23195!/:?] at net.minecraft.server.network.ServerGamePacketListenerImpl.m7423(ServerPlayNetHandlerMixin.java:1439) ~[server-1.18.2-20220404.173914-srg.jar%23190!/:?] at net.minecraft.network.protocol.game.ServerboundCustomPayloadPacket.m5797(ServerboundCustomPayloadPacket.java:35) ~[server-1.18.2-20220404.173914-srg.jar%23190!/:?] at net.minecraft.network.protocol.game.ServerboundCustomPayloadPacket.m5797(ServerboundCustomPayloadPacket.java:8) ~[server-1.18.2-20220404.173914-srg.jar%23190!/:?] at net.minecraft.network.protocol.PacketUtils.mdd67f10$lambda$ensureRunningOnSameThread$0$0(PacketThreadUtilMixin.java:537) ~[server-1.18.2-20220404.173914-srg.jar%23190!/:?] at net.minecraft.server.TickTask.run(TickTask.java:18) ~[server-1.18.2-20220404.173914-srg.jar%23190!/:?] at net.minecraft.util.thread.BlockableEventLoop.m6367(BlockableEventLoop.java:157) ~[server-1.18.2-20220404.173914-srg.jar%23190!/:?] at net.minecraft.util.thread.ReentrantBlockableEventLoop.m6367(ReentrantBlockableEventLoop.java:23) ~[server-1.18.2-20220404.173914-srg.jar%23190!/:?] at net.minecraft.server.MinecraftServer.m6367(MinecraftServerMixin.java:799) ~[server-1.18.2-20220404.173914-srg.jar%23190!/:?] at net.minecraft.server.MinecraftServer.m6367(MinecraftServerMixin.java:164) ~[server-1.18.2-20220404.173914-srg.jar%23190!/:?] at net.minecraft.util.thread.BlockableEventLoop.m7245(BlockableEventLoop.java:131) ~[server-1.18.2-20220404.173914-srg.jar%23190!/:?] at net.minecraft.server.MinecraftServer.m129961(MinecraftServerMixin.java:782) ~[server-1.18.2-20220404.173914-srg.jar%23190!/:?] at net.minecraft.server.MinecraftServer.m7245(MinecraftServerMixin.java:776) ~[server-1.18.2-20220404.173914-srg.jar%23190!/:?] at net.minecraft.util.thread.BlockableEventLoop.m18701(BlockableEventLoop.java:140) ~[server-1.18.2-20220404.173914-srg.jar%23190!/:?] at net.minecraft.server.MinecraftServer.m130012(MinecraftServerMixin.java:762) ~[server-1.18.2-20220404.173914-srg.jar%23190!/:?] at net.minecraft.server.MinecraftServer.m130011(MinecraftServerMixin.java:2139) ~[server-1.18.2-20220404.173914-srg.jar%23190!/:?] at net.minecraft.server.MinecraftServer.m177918(MinecraftServerMixin.java:261) ~[server-1.18.2-20220404.173914-srg.jar%23190!/:?] at java.lang.Thread.run(Thread.java:833) [?:?]