mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Potential error spam fix
This commit is contained in:
parent
16388a1f85
commit
2d2b4704dc
1 changed files with 4 additions and 1 deletions
|
@ -40,7 +40,10 @@ public class JavaMapDataTranslator extends PacketTranslator<ServerMapDataPacket>
|
|||
ClientboundMapItemDataPacket mapItemDataPacket = new ClientboundMapItemDataPacket();
|
||||
|
||||
mapItemDataPacket.setUniqueMapId(packet.getMapId());
|
||||
mapItemDataPacket.setDimensionId(session.getLastDimPacket().getDimension());
|
||||
if (session.getLastDimPacket() == null) {
|
||||
System.out.println("Dimension is null");
|
||||
mapItemDataPacket.setDimensionId(0);
|
||||
} else mapItemDataPacket.setDimensionId(session.getLastDimPacket().getDimension());
|
||||
mapItemDataPacket.setLocked(packet.isLocked());
|
||||
mapItemDataPacket.setScale(packet.getScale());
|
||||
|
||||
|
|
Loading…
Reference in a new issue