We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bd318d commit ae4ca22Copy full SHA for ae4ca22
src/main/java/com/cleanroommc/modularui/ClientProxy.java
@@ -76,7 +76,7 @@ void postInit(FMLPostInitializationEvent event) {
76
77
@SubscribeEvent
78
public void onKeyboard(InputEvent.KeyInputEvent event) {
79
- if (ModularUIConfig.enableTestGuis && testKey.isPressed() && ModularUI.Mods.BAUBLES.isLoaded()) {
+ if (ModularUIConfig.enableTestGuis && testKey != null && testKey.isPressed() && ModularUI.Mods.BAUBLES.isLoaded()) {
80
InventoryTypes.BAUBLES.visitAll(Minecraft.getMinecraft().player, (type, index, stack) -> {
81
if (stack.getItem() instanceof TestItem) {
82
GuiFactories.playerInventory().openFromBaublesClient(index);
0 commit comments