diff options
author | syeyoung <cyong06@naver.com> | 2021-04-18 18:28:25 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-04-18 18:28:25 +0900 |
commit | 5a2e091587c613c3bcd7acc58d7b464149c51bdd (patch) | |
tree | 1fc93818b3c6fa9b1433b24c60f99569ba69e646 /src/main/java/kr/syeyoung/dungeonsguide/features | |
parent | 23d82b22e5dc9743483cf3ebde848a2c19d9606a (diff) | |
download | Skyblock-Dungeons-Guide-5a2e091587c613c3bcd7acc58d7b464149c51bdd.tar.gz Skyblock-Dungeons-Guide-5a2e091587c613c3bcd7acc58d7b464149c51bdd.tar.bz2 Skyblock-Dungeons-Guide-5a2e091587c613c3bcd7acc58d7b464149c51bdd.zip |
ok great
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/features')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/features/impl/boss/terminal/FeatureSimonSaysSolver.java | 8 |
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) { |