mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Quick map fix
This commit is contained in:
parent
2d2b4704dc
commit
9c282d2cb8
1 changed files with 1 additions and 4 deletions
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in a new issue