Avaritia Tweaks

Avaritia Tweaks

4M Downloads

Game crashes when opening Controls GUI

ephys opened this issue · 8 comments

commented

I'm getting a weird crash that is really hard to track down. It doesn't mention this mod specifically but only occur when this mod is loaded.

Here is the crash report: https://gist.github.com/Ephys/597a64c9b14761a6c67b0a9996c3c51e

I think it may be related to StrikerRockers-Mods/VanillaTweaks#19 -- I had the exact same issue with that mod alone too.

commented

That's very strange. Does that happen every time or just at occasions?

commented

Happened every time as soon as the GUI was opened

Edit: This might be interesting, I disabled infinityArmorNoClip in the config. I'll try with it on

commented

Definitely interesting, the crash only happens if infinityArmorNoClip is false. Maybe creating the keybind but not registering it is the source of the crash?

commented

Might be something to do with the keybind, I think I should always register the keybind but only disable No Clip mode for ingame.

commented

Or only instanciate the KeyBind if it's going to be registered. It doesn't look like it's being referenced from anywhere in the code so it shouldn't be an issue

commented

I am actually.

@SubscribeEvent @SideOnly(Side.CLIENT)
public void onKeyInput(InputEvent.KeyInputEvent event) {
if (Keys.NOCLIP.isPressed()) {
PacketHandler.INSTANCE.sendToServer(new PacketToggleNoClip());
}
}

But it's fine, that can be fixed quite easily.

commented

New version coming out in a few hours, hopefully should fix your problems.
image

commented

Thank youu!