aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide
diff options
context:
space:
mode:
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);
+ }
}
}