From 5cac3f67b8d77bbf10b1c6cff1137f695a11f0f0 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Fri, 12 Feb 2021 15:58:59 +0900 Subject: asd --- .../syeyoung/dungeonsguide/features/FeatureRegistry.java | 2 -- .../dungeonsguide/roomprocessor/GeneralRoomProcessor.java | 15 +++++++++------ 2 files changed, 9 insertions(+), 8 deletions(-) (limited to 'src/main/java/kr') 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); + } } } -- cgit