Skip to content

Commit

Permalink
Fix waypoint rendering not turning off
Browse files Browse the repository at this point in the history
  • Loading branch information
Emirlol committed May 13, 2024
1 parent 4b86aca commit dbf1300
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ private static void renderWaypoints(WorldRenderContext context) {
private static void onChatMessage(Text text, boolean overlay) {
if (overlay || !SkyblockerConfigManager.get().helpers.chocolateFactory.enableEggFinder) return;
Matcher matcher = eggFoundPattern.matcher(text.getString());
if (matcher.matches()) {
if (matcher.find()) {
try {
Egg egg = EggType.valueOf(matcher.group(1).toUpperCase()).egg.getValue();
if (egg != null) egg.waypoint.setFound();
Expand All @@ -87,7 +87,7 @@ private static void onChatMessage(Text text, boolean overlay) {

//There's only one egg of the same type at any given time, so we can set the changed egg to null
matcher = newEggPattern.matcher(text.getString());
if (matcher.matches()) {
if (matcher.find()) {
try {
EggType.valueOf(matcher.group(1).toUpperCase()).egg.setValue(null);
} catch (IllegalArgumentException e) {
Expand Down

0 comments on commit dbf1300

Please sign in to comment.