aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/features
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/features')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/features/impl/boss/terminal/FeatureSimonSaysSolver.java8
1 files changed, 8 insertions, 0 deletions
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 6e7ef176..2f92873e 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
@@ -31,6 +31,12 @@ public class FeatureSimonSaysSolver extends SimpleFeature implements WorldRender
@Override
public void drawWorld(float partialTicks) {
if (!isEnabled()) return;
+ DungeonContext dc = ss.getContext();
+ if (dc == null) {
+ return;
+ }
+ if (!(dc.getBossfightProcessor() instanceof BossfightProcessorNecron)) return;
+ if (!dc.getBossfightProcessor().getCurrentPhase().equals("terminals")) return;
if (orderclick.size() >= 1)
RenderUtils.highlightBlock(orderclick.get(0), new Color(0, 255 ,255, 100), partialTicks, false);
@@ -46,6 +52,8 @@ public class FeatureSimonSaysSolver extends SimpleFeature implements WorldRender
return;
}
if (!(dc.getBossfightProcessor() instanceof BossfightProcessorNecron)) return;
+ if (!dc.getBossfightProcessor().getCurrentPhase().equals("terminals")) return;
+
World w = dc.getWorld();
if (wasButton && w.getBlockState(new BlockPos(309, 123, 291)).getBlock() == Blocks.air) {