Skip to content

Commit

Permalink
wpgroup update
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticdrew committed Oct 6, 2023
1 parent 65d4528 commit 1272e34
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ public WaypointGroup(String modId, String name)
this.settings = (GroupSettings) new GroupSettings().setEnable(true).setDirty(true);
}

public void addWaypoint(Waypoint waypoint)
public WaypointGroup addWaypoint(Waypoint waypoint)
{
waypoints.add(waypoint.getGuid());
this.setDirty()
;return this;
}

public String getGuid()
Expand All @@ -61,6 +63,7 @@ public boolean isEnabled()
public WaypointGroup setEnabled(boolean enabled)
{
this.settings.setEnable(enabled);
this.setDirty();
return this;
}

Expand Down

0 comments on commit 1272e34

Please sign in to comment.