Skip to content

Commit

Permalink
- fixed formatting being shared between different strings
Browse files Browse the repository at this point in the history
  • Loading branch information
kurrycat committed Jul 9, 2023
1 parent 4a9a414 commit 79da03c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package io.github.kurrycat.mpkmod.compatibility.MCClasses;

import io.github.kurrycat.mpkmod.compatibility.API;
import io.github.kurrycat.mpkmod.util.Colors;
import io.github.kurrycat.mpkmod.util.Vector2D;

import java.awt.*;
Expand All @@ -16,7 +17,7 @@ public class FontRenderer {
* @param shadow Draws the same text again underneath in {@link Color#BLACK} and a positive offset of 1px for each axis
*/
public static void drawString(String text, Vector2D pos, Color color, boolean shadow) {
Interface.get().ifPresent(f -> f.drawString(text, pos, color, shadow));
Interface.get().ifPresent(f -> f.drawString(Colors.RESET.getCode() + text, pos, color, shadow));
}

/**
Expand Down

0 comments on commit 79da03c

Please sign in to comment.