Skip to content

Commit

Permalink
Update options
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinthegreat1 committed Mar 31, 2024
1 parent cd360e2 commit 4e388f4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package com.kevinthegreat.skyblockmod.screen;

import com.kevinthegreat.skyblockmod.waypoint.WaypointsScreen;
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.text.Text;

public class FeaturesOptionsScreen extends AbstractSkyblockModOptionsScreen {
public FeaturesOptionsScreen(Screen parent) {
super(parent, SkyblockModOptionsScreen.OTHER_FEATURES);
}


@Override
protected void init() {
super.init();
Expand All @@ -21,6 +22,7 @@ protected void init() {
addOptionButton(options.shortcuts);
addOptionButton(options.waypoints);
addOptionButton(options.waypointType);
addScreenButton(Text.translatable("skyblocker.waypoints.config"), WaypointsScreen::new);
addGridWidget();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,12 @@ public static Multimap<String, WaypointCategory> waypointsDeepCopy() {
}

public static void render(WorldRenderContext context) {
Collection<WaypointCategory> categories = waypoints.get(SkyblockMod.skyblockMod.info.locationRaw);
for (WaypointCategory category : categories) {
if (category != null) {
category.render(context);
if (SkyblockMod.skyblockMod.options.waypoints.getValue()) {
Collection<WaypointCategory> categories = waypoints.get(SkyblockMod.skyblockMod.info.locationRaw);
for (WaypointCategory category : categories) {
if (category != null) {
category.render(context);
}
}
}
}
Expand Down

0 comments on commit 4e388f4

Please sign in to comment.