Quick map fix

This commit is contained in:
DoctorMacc 2020-04-07 13:54:08 -04:00
parent 2d2b4704dc
commit 9c282d2cb8

View file

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