aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/features
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-04-18 18:28:25 +0900
committersyeyoung <cyong06@naver.com>2021-04-18 18:28:25 +0900
commit5a2e091587c613c3bcd7acc58d7b464149c51bdd (patch)
tree1fc93818b3c6fa9b1433b24c60f99569ba69e646 /src/main/java/kr/syeyoung/dungeonsguide/features
parent23d82b22e5dc9743483cf3ebde848a2c19d9606a (diff)
downloadSkyblock-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.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) {