Skip to content

Commit ae4ca22

Browse files
committed
fix #148
1 parent 2bd318d commit ae4ca22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/cleanroommc/modularui/ClientProxy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ void postInit(FMLPostInitializationEvent event) {
7676

7777
@SubscribeEvent
7878
public void onKeyboard(InputEvent.KeyInputEvent event) {
79-
if (ModularUIConfig.enableTestGuis && testKey.isPressed() && ModularUI.Mods.BAUBLES.isLoaded()) {
79+
if (ModularUIConfig.enableTestGuis && testKey != null && testKey.isPressed() && ModularUI.Mods.BAUBLES.isLoaded()) {
8080
InventoryTypes.BAUBLES.visitAll(Minecraft.getMinecraft().player, (type, index, stack) -> {
8181
if (stack.getItem() instanceof TestItem) {
8282
GuiFactories.playerInventory().openFromBaublesClient(index);

0 commit comments

Comments
 (0)