3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-12-26 16:12:46 +01:00
Dieser Commit ist enthalten in:
DoctorMacc 2020-04-07 13:54:08 -04:00
Ursprung 2d2b4704dc
Commit 9c282d2cb8

Datei anzeigen

@ -40,10 +40,7 @@ public class JavaMapDataTranslator extends PacketTranslator<ServerMapDataPacket>
ClientboundMapItemDataPacket mapItemDataPacket = new ClientboundMapItemDataPacket();
mapItemDataPacket.setUniqueMapId(packet.getMapId());
if (session.getLastDimPacket() == null) {
System.out.println("Dimension is null");
mapItemDataPacket.setDimensionId(0);
} else mapItemDataPacket.setDimensionId(session.getLastDimPacket().getDimension());
mapItemDataPacket.setDimensionId(session.getPlayerEntity().getDimension());
mapItemDataPacket.setLocked(packet.isLocked());
mapItemDataPacket.setScale(packet.getScale());