From 03c7a600bd1cd038e301e62b98d201e5e25309ce Mon Sep 17 00:00:00 2001 From: syeyoung Date: Sun, 23 May 2021 16:26:02 +0900 Subject: Distance check on simon says solver --- .../features/impl/boss/terminal/FeatureSimonSaysSolver.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main/java') 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 74f6d948..3ef1a530 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 @@ -27,6 +27,7 @@ import kr.syeyoung.dungeonsguide.features.listener.TickListener; import kr.syeyoung.dungeonsguide.features.listener.WorldRenderListener; import kr.syeyoung.dungeonsguide.roomprocessor.bossfight.BossfightProcessorNecron; import kr.syeyoung.dungeonsguide.utils.RenderUtils; +import net.minecraft.client.Minecraft; import net.minecraft.init.Blocks; import net.minecraft.util.BlockPos; import net.minecraft.world.World; @@ -55,6 +56,8 @@ public class FeatureSimonSaysSolver extends SimpleFeature implements WorldRender } if (!(dc.getBossfightProcessor() instanceof BossfightProcessorNecron)) return; if (!dc.getBossfightProcessor().getCurrentPhase().equals("terminals")) return; + if (Minecraft.getMinecraft().thePlayer.getPosition().distanceSq(309,123,291) > 400) return; + if (orderclick.size() >= 1) RenderUtils.highlightBlock(orderclick.get(0), new Color(0, 255 ,255, 100), partialTicks, false); -- cgit