From 282a946c40e8678f13d4998aedd1f4065143a7c7 Mon Sep 17 00:00:00 2001 From: syeyoung <42869671+cyoung06@users.noreply.github.com> Date: Thu, 26 Nov 2020 15:17:39 +0900 Subject: set edit stuff --- src/main/java/kr/syeyoung/dungeonsguide/EventListener.java | 1 + .../dungeonsguide/roomedit/gui/GuiDungeonOffsetPointEdit.java | 1 + .../dungeonsguide/roomedit/valueedit/ValueEditOffsetPointSet.java | 4 +++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/kr/syeyoung/dungeonsguide/EventListener.java b/src/main/java/kr/syeyoung/dungeonsguide/EventListener.java index 195c15bb..bce2b573 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/EventListener.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/EventListener.java @@ -52,6 +52,7 @@ public class EventListener { if (skyblockStatus.getContext() != null) { DungeonContext context = skyblockStatus.getContext(); EntityPlayerSP thePlayer = Minecraft.getMinecraft().thePlayer; + if (thePlayer == null) return; Point roomPt = context.getMapProcessor().worldPointToRoomPoint(thePlayer.getPosition()); DungeonRoom dungeonRoom = context.getRoomMapper().get(roomPt); diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/gui/GuiDungeonOffsetPointEdit.java b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/gui/GuiDungeonOffsetPointEdit.java index f78504fd..ebdfffdf 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/gui/GuiDungeonOffsetPointEdit.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/gui/GuiDungeonOffsetPointEdit.java @@ -31,6 +31,7 @@ public class GuiDungeonOffsetPointEdit extends GuiScreen { public GuiDungeonOffsetPointEdit(final ValueEditOffsetPointSet valueEditOffsetPointSet, final OffsetPoint offsetPoint) { this.offsetPoint = offsetPoint; + mainPanel.setBackgroundColor(new Color(17, 17, 17, 179)); { MPanel thing = (MPanel) ValueEditRegistry.getValueEditMap(OffsetPoint.class.getName()).createValueEdit(new Parameter(null, null, null) { @Override diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/valueedit/ValueEditOffsetPointSet.java b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/valueedit/ValueEditOffsetPointSet.java index a701894f..b8d9feb8 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/valueedit/ValueEditOffsetPointSet.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/valueedit/ValueEditOffsetPointSet.java @@ -101,8 +101,10 @@ public class ValueEditOffsetPointSet extends MPanel implements ValueEdit