Map map = playerLayer.getMap();
if (player.parentFragment != null) {
player.parentFragment.removeObject(player);
}
Point location = map.screenToLocal(mapViewer.lastRightClick);
player.setPosition(location.x, location.y);
Fragment fragment = map.getFragmentAt(location);
fragment.addObject(player);
player.parentFragment = fragment;
}