Move callback order

This commit is contained in:
fullwall 2012-03-27 23:26:47 +08:00
parent 5c0b32e8a3
commit 5b6dc2e607

View File

@ -35,7 +35,6 @@ public class LinearWaypointProvider implements WaypointProvider, Iterable<Waypoi
@Override
public void end() {
player.sendMessage(ChatColor.AQUA + "Exited the linear waypoint editor.");
callback.onProviderChanged();
}
@EventHandler
@ -53,6 +52,7 @@ public class LinearWaypointProvider implements WaypointProvider, Iterable<Waypoi
Messaging.send(player,
String.format("<e>Removed<a> a waypoint (<e>%d<a> remaining)", waypoints.size()));
}
callback.onProviderChanged();
}
};
}