3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-12-27 08:30:12 +01:00

Potential error spam fix

Dieser Commit ist enthalten in:
DoctorMacc 2020-04-06 20:57:26 -04:00
Ursprung 16388a1f85
Commit 2d2b4704dc

Datei anzeigen

@ -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());