Fix NPE in linear waypoint editor

This commit is contained in:
fullwall 2020-04-15 04:20:21 +08:00
parent 09f7cbb9d5
commit e288bd934c

View File

@ -360,7 +360,7 @@ public class LinearWaypointProvider implements EnumerableWaypointProvider {
if (currentGoal != null) {
currentGoal.onProviderChanged();
}
if (conversation != null) {
if (conversation != null && getCurrentWaypoint() != null) {
getCurrentWaypoint().describeTriggers(player);
}
}