diff options
author | syeyoung <cyoung06@naver.com> | 2023-02-10 16:05:45 +0900 |
---|---|---|
committer | syeyoung <cyoung06@naver.com> | 2023-02-10 16:05:45 +0900 |
commit | dc5283d8c3b0ecabd0334487b4e73dfb3ebc28b8 (patch) | |
tree | 599940f3f0ea3c9c455bb4553f06a7e7cb0e5e2e /mod | |
parent | a253343ccf2b5876e1f3e6caa7e8c4e7f6dadefc (diff) | |
download | Skyblock-Dungeons-Guide-dc5283d8c3b0ecabd0334487b4e73dfb3ebc28b8.tar.gz Skyblock-Dungeons-Guide-dc5283d8c3b0ecabd0334487b4e73dfb3ebc28b8.tar.bz2 Skyblock-Dungeons-Guide-dc5283d8c3b0ecabd0334487b4e73dfb3ebc28b8.zip |
- Fix hypixel sending bad map
Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'mod')
-rw-r--r-- | mod/src/main/java/kr/syeyoung/dungeonsguide/mod/events/listener/PacketListener.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/events/listener/PacketListener.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/events/listener/PacketListener.java index f84da51f..03ce249d 100644 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/events/listener/PacketListener.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/events/listener/PacketListener.java @@ -85,7 +85,9 @@ public class PacketListener { MinecraftForge.EVENT_BUS.post(new PlayerListItemPacketEvent((S38PacketPlayerListItem) packet)); }else if (packet instanceof S34PacketMaps) { MapData mapData = MapDataManager.INSTANCE.createMapData(((S34PacketMaps) packet).getMapId()); - ((S34PacketMaps) packet).setMapdataTo(mapData); + try { + ((S34PacketMaps) packet).setMapdataTo(mapData); + } catch (Exception ignored) {} // hypixel seem to be sending bad map datas. MinecraftForge.EVENT_BUS.post(new MapUpdateEvent(((S34PacketMaps) packet).getMapId(), mapData)); } } |