diff --git a/megamek/src/megamek/client/bot/princess/Precognition.java b/megamek/src/megamek/client/bot/princess/Precognition.java index da76a3e2a0c..6048e795316 100644 --- a/megamek/src/megamek/client/bot/princess/Precognition.java +++ b/megamek/src/megamek/client/bot/princess/Precognition.java @@ -273,6 +273,9 @@ void handlePacket(Packet c) { case ENTITY_MULTIUPDATE: receiveEntitiesUpdate(c); break; + case UPDATE_GROUND_OBJECTS: + receiveUpdateGroundObjects(c); + break; case SERVER_GREETING: case SERVER_CORRECT_NAME: case CLOSE_CONNECTION: @@ -857,6 +860,9 @@ private void receiveEntityNovaNetworkModeChange(Packet c) { } catch (Exception ex) { LogManager.getLogger().error("", ex); } + } + private void receiveUpdateGroundObjects(Packet packet) { + game.setGroundObjects((Map>) packet.getObject(0)); } }