Meridanus / fabric_xp_storage_additions

MIT License
0 stars 1 forks source link

bug that you cannot use commands 1.19.2 #18

Closed papillo12 closed 1 year ago

papillo12 commented 1 year ago

hello, sorry for not having a crash report or a log is that it was long ago that I solved the problem, but when you enter a server and try to use commands from the game does not let you use them, it was until I did a discard mods that I found the problem was your mod

Meridanus commented 1 year ago

Does the error occur with only my mods present? I can't find any command related bug from my side.

papillo12 commented 1 year ago

hello, yes, you could use commands from the server panel, but inside the game it was no longer possible

Meridanus commented 1 year ago

That's very Strange, when i test this with Fabric, Xp Obelisk and Xp Obelisk Additions, there's no problem with in game Commands.

Can you tell me more about your server setup?! can't reproduce the bug on my system.

jarocajavi commented 1 year ago

same for me

https://pastebin.com/HZB7R8gd

when i try type a command get a strange bug than tells a problem with fabric

https://i.imgur.com/Gt3DsWb.png

papillo12 commented 1 year ago

same for me

https://pastebin.com/HZB7R8gd

when i try type a command get a strange bug than tells a problem with fabric

https://i.imgur.com/Gt3DsWb.png

that's exactly the error I had

Meridanus commented 1 year ago

I didn't use the ClientCommandManager on my mod see: https://docproject.github.io/fabricmc_fabric/net/fabricmc/fabric/api/client/command/v1/ClientCommandManager.html

I have no idea what happens... and can't reproduce the bug. I think its some other mod that causes this error.

kevinthegreat1 commented 1 year ago

mod xps_additions is throwing an exception in its listener registered to ClientPlayConnectionEvents.JOIN, which causes ClientPlayNetworkHandler.onGameJoin() to exit early which causes ClientCommandInternals.activeDispatcher to not be set. Then, running a command from the client will throw a null pointer exception as activeDispatcher is not set.

Attached is .mixin.out and the relevant log. mixin.out.zip latest.log

Meridanus commented 1 year ago

That's good to know. But i have no idea how to fix that at the moment :/ cant reproduce this bug on my IDE.

something here goes wrong:

 ClientPlayConnectionEvents.JOIN.register((packetListener, packetSender, mc) -> {
            if (StaffOfRebark.STRIPPED_BLOCKS == null) {
                System.out.println("Null on Client");
                StaffOfRebark.STRIPPED_BLOCKS = AxeItemAccessor.getStrip().entrySet().stream()
                .map((e) -> new AbstractMap.SimpleImmutableEntry<>(e.getKey(), e.getValue()))
                .collect(Collectors.toMap(Map.Entry::getValue, Map.Entry::getKey));
            }
        });
Meridanus commented 1 year ago

Fixed wit the last commit, Mod version 0.1.8