From b95c84eece5cfbb1dd25a7e5d4b022863f643044 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Wed, 28 Jul 2021 00:05:19 +0900 Subject: Fix NPE in Simon Says --- .../features/impl/boss/terminal/FeatureSimonSaysSolver.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java/kr') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/boss/terminal/FeatureSimonSaysSolver.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/boss/terminal/FeatureSimonSaysSolver.java index 3ef1a530..ba0322f6 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/boss/terminal/FeatureSimonSaysSolver.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/boss/terminal/FeatureSimonSaysSolver.java @@ -103,6 +103,7 @@ public class FeatureSimonSaysSolver extends SimpleFeature implements WorldRender DungeonContext dc = ss.getContext(); if (dc == null) return; if (!(dc.getBossfightProcessor() instanceof BossfightProcessorNecron)) return; + if (event.action != PlayerInteractEvent.Action.RIGHT_CLICK_BLOCK) return; World w = dc.getWorld(); BlockPos pos = event.pos.add(1,0,0); -- cgit