diff options
author | syeyoung <cyong06@naver.com> | 2021-01-06 11:31:07 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-01-06 11:31:07 +0900 |
commit | ba793c28fa627ae2ea437b261be56b4cf19fcd8f (patch) | |
tree | 466c6d541f125f462c2c5415158f29c662b5828d /src/main/java/kr/syeyoung/dungeonsguide/roomprocessor | |
parent | 04d414547e4d932f4db9a74dbc4aea8d75b96960 (diff) | |
download | Skyblock-Dungeons-Guide-ba793c28fa627ae2ea437b261be56b4cf19fcd8f.tar.gz Skyblock-Dungeons-Guide-ba793c28fa627ae2ea437b261be56b4cf19fcd8f.tar.bz2 Skyblock-Dungeons-Guide-ba793c28fa627ae2ea437b261be56b4cf19fcd8f.zip |
fix xray inter mod comm
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/roomprocessor')
-rwxr-xr-x | src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/GeneralRoomProcessor.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/GeneralRoomProcessor.java b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/GeneralRoomProcessor.java index a46ea8cb..4e12399e 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/GeneralRoomProcessor.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/GeneralRoomProcessor.java @@ -63,9 +63,13 @@ public class GeneralRoomProcessor implements RoomProcessor { } + BlockPos pos2 = dungeonRoom.getMin().add(5,0,5); + String text = chat.getFormattedText(); int secretsIndex = text.indexOf("Secrets"); if (secretsIndex == -1) { + if (FeatureRegistry.DUNGEON_INTERMODCOMM.isEnabled()) + Minecraft.getMinecraft().thePlayer.sendChatMessage("/ac $DG-Comm "+pos2.getX() + "/"+pos2.getZ() + " "+0); dungeonRoom.setTotalSecrets(0); return; } @@ -78,6 +82,8 @@ public class GeneralRoomProcessor implements RoomProcessor { String it = text.substring(theindex + 2, secretsIndex- 1); int maxSecret = Integer.parseInt(it.split("/")[1]); dungeonRoom.setTotalSecrets(maxSecret); + if (FeatureRegistry.DUNGEON_INTERMODCOMM.isEnabled()) + Minecraft.getMinecraft().thePlayer.sendChatMessage("/ac $DG-Comm "+pos2.getX() + "/"+pos2.getZ() + " "+maxSecret); } @Override |