Fixes CORE-84 for datapad button and command.

This commit is contained in:
Z61
2015-06-04 21:21:23 -04:00
parent bc9c8799e8
commit eaf5a1ea4e
2 changed files with 6 additions and 3 deletions
@@ -29,6 +29,7 @@ package resources.objects.player;
import network.packets.swg.zone.UpdatePostureMessage;
import network.packets.swg.zone.baselines.Baseline.BaselineType;
import network.packets.swg.zone.chat.ChatSystemMessage;
import resources.collections.SWGList;
import resources.collections.SWGMap;
import resources.network.BaselineBuilder;
@@ -102,8 +103,13 @@ public class PlayerObject extends IntangibleObject {
public void addWaypoint(WaypointObject waypoint) {
synchronized(waypoints) {
if (waypoints.size() < 250) {
waypoints.put(waypoint.getObjectId(), waypoint);
waypoints.sendDeltaMessage(this);
}
else {
sendSelf(new ChatSystemMessage(ChatSystemMessage.SystemChatType.SCREEN_AND_CHAT, "@base_player:too_many_waypoints"));
}
}
}