aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-02-12 15:58:59 +0900
committersyeyoung <cyong06@naver.com>2021-02-12 15:58:59 +0900
commit5cac3f67b8d77bbf10b1c6cff1137f695a11f0f0 (patch)
tree2a985060661e50f56d85fcb0bf3750525da8b9da /src/main/java/kr/syeyoung/dungeonsguide
parentb808e27a2cc2c6c8fdf93e5de6ddf05053c3addb (diff)
downloadSkyblock-Dungeons-Guide-5cac3f67b8d77bbf10b1c6cff1137f695a11f0f0.tar.gz
Skyblock-Dungeons-Guide-5cac3f67b8d77bbf10b1c6cff1137f695a11f0f0.tar.bz2
Skyblock-Dungeons-Guide-5cac3f67b8d77bbf10b1c6cff1137f695a11f0f0.zip
asd
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/features/FeatureRegistry.java2
-rwxr-xr-xsrc/main/java/kr/syeyoung/dungeonsguide/roomprocessor/GeneralRoomProcessor.java15
2 files changed, 9 insertions, 8 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/FeatureRegistry.java b/src/main/java/kr/syeyoung/dungeonsguide/features/FeatureRegistry.java
index e9f7c14f..30591e28 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/features/FeatureRegistry.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/features/FeatureRegistry.java
@@ -92,6 +92,4 @@ public class FeatureRegistry {
public static final FeatureMechanicBrowse SECRET_BROWSE = register(new FeatureMechanicBrowse());
public static final FeatureActions SECRET_ACTIONS = register(new FeatureActions());
public static final SimpleFeature SECRET_AUTO_BROWSE_NEXT = register(new SimpleFeature("Secret", "Auto browse next secret.", "Auto browse next secret after current one completes.\nYou still need to trigger first pathfinding of first secret, after that this option would start working", "secret.autobrowse", false));
- public static final SimpleFeature SECRET_DRAW_ARROW = register(new SimpleFeature("Secret", "Draw Arrows on Moving actions", "Overlay arrows over found path", "secret.arrows", false));
-
}
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/GeneralRoomProcessor.java b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/GeneralRoomProcessor.java
index da7b7b59..aeec01dd 100755
--- a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/GeneralRoomProcessor.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/GeneralRoomProcessor.java
@@ -71,13 +71,16 @@ public class GeneralRoomProcessor implements RoomProcessor {
public void drawScreen(float partialTicks) {
if (path != null) path.onRenderScreen(partialTicks);
- FontRenderer fr = Minecraft.getMinecraft().fontRendererObj;
+ if (FeatureRegistry.ADVANCED_ROOMEDIT.isEnabled() && FeatureRegistry.DEBUG.isEnabled()) {
+ FontRenderer fr = Minecraft.getMinecraft().fontRendererObj;
- Entity en = Minecraft.getMinecraft().objectMouseOver.entityHit;
- if (en == null) return;;
- ScaledResolution sr = new ScaledResolution(Minecraft.getMinecraft());
- if (EntitySpawnManager.getSpawnLocation().containsKey(en.getEntityId())) {
- fr.drawString("Spawned at "+EntitySpawnManager.getSpawnLocation().get(en.getEntityId()), sr.getScaledWidth() / 2, sr.getScaledHeight() / 2, 0xFFFFFFFF);
+ Entity en = Minecraft.getMinecraft().objectMouseOver.entityHit;
+ if (en == null) return;
+
+ ScaledResolution sr = new ScaledResolution(Minecraft.getMinecraft());
+ if (EntitySpawnManager.getSpawnLocation().containsKey(en.getEntityId())) {
+ fr.drawString("Spawned at " + EntitySpawnManager.getSpawnLocation().get(en.getEntityId()), sr.getScaledWidth() / 2, sr.getScaledHeight() / 2, 0xFFFFFFFF);
+ }
}
}