aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyeyoung <42869671+cyoung06@users.noreply.github.com>2020-12-07 14:53:45 +0900
committersyeyoung <42869671+cyoung06@users.noreply.github.com>2020-12-07 14:53:45 +0900
commit081bf824bbb448e6665573f7f8f531cbbe43dea0 (patch)
tree2a1879300234500b5d93359a8555bcc7f3dc2b4f
parent4e82fbff685a77f1725abe93f87f7648af21ea35 (diff)
downloadSkyblock-Dungeons-Guide-081bf824bbb448e6665573f7f8f531cbbe43dea0.tar.gz
Skyblock-Dungeons-Guide-081bf824bbb448e6665573f7f8f531cbbe43dea0.tar.bz2
Skyblock-Dungeons-Guide-081bf824bbb448e6665573f7f8f531cbbe43dea0.zip
stop calling twice
-rw-r--r--options.txt2
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/EventListener.java3
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/icefill/RoomProcessorIcePath2.java3
3 files changed, 6 insertions, 2 deletions
diff --git a/options.txt b/options.txt
index b4a95f2e..fec4f690 100644
--- a/options.txt
+++ b/options.txt
@@ -24,7 +24,7 @@ chatLinks:true
chatLinksPrompt:true
chatOpacity:1.0
snooperEnabled:true
-fullscreen:false
+fullscreen:true
enableVsync:true
useVbo:false
hideServerAddress:false
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/EventListener.java b/src/main/java/kr/syeyoung/dungeonsguide/EventListener.java
index d1daa7d6..5f37ea82 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/EventListener.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/EventListener.java
@@ -126,17 +126,20 @@ public class EventListener {
EntityPlayerSP thePlayer = Minecraft.getMinecraft().thePlayer;
Point roomPt = context.getMapProcessor().worldPointToRoomPoint(thePlayer.getPosition());
+ RoomProcessor roomProcessor = null;
try {
DungeonRoom dungeonRoom = context.getRoomMapper().get(roomPt);
if (dungeonRoom != null) {
if (dungeonRoom.getRoomProcessor() != null) {
dungeonRoom.getRoomProcessor().chatReceived(clientChatReceivedEvent.message);
+ roomProcessor = dungeonRoom.getRoomProcessor();
}
}
} catch (Throwable t) {
t.printStackTrace();
}
for (RoomProcessor globalRoomProcessor : context.getGlobalRoomProcessors()) {
+ if (globalRoomProcessor == roomProcessor) continue;;
try {
globalRoomProcessor.chatReceived(clientChatReceivedEvent.message);
} catch (Throwable t) {
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/icefill/RoomProcessorIcePath2.java b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/icefill/RoomProcessorIcePath2.java
index 7671cc80..c0cf99a5 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/icefill/RoomProcessorIcePath2.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/icefill/RoomProcessorIcePath2.java
@@ -8,6 +8,7 @@ import kr.syeyoung.dungeonsguide.utils.RenderUtils;
import net.minecraft.client.Minecraft;
import net.minecraft.init.Blocks;
import net.minecraft.util.BlockPos;
+import net.minecraft.util.ChatComponentText;
import java.awt.*;
import java.util.ArrayList;
@@ -80,7 +81,7 @@ public class RoomProcessorIcePath2 extends GeneralRoomProcessor {
public void tick() {
super.tick();
while (!messageQueue.isEmpty()){
- Minecraft.getMinecraft().thePlayer.sendChatMessage(messageQueue.poll());
+ Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText(messageQueue.poll()));
}
}