Skip to content

Commit

Permalink
🐞 Fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiYueCommentary committed Jun 23, 2024
1 parent b6277cc commit 91b15f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ public static NativeImage generateBoundFor(long platformId, HorizontalAlignment
// drawString(nativeImage, route.getA(), currentX.get(), height / 2, horizontalAlignment, VerticalAlignment.CENTER, 0, ARGB_WHITE, false);
// currentX.addAndGet(routeSquarePadding * 3 + route.getA().width());
//});
drawString(nativeImage, boundFor, 0, height / 2, horizontalAlignment, VerticalAlignment.CENTER, backgroundColor, ARGB_WHITE, false);
drawString(nativeImage, boundFor, horizontalAlignment == HorizontalAlignment.LEFT ? 0 : width, height / 2, horizontalAlignment, VerticalAlignment.CENTER, backgroundColor, ARGB_WHITE, false);
clearColor(nativeImage, invertColor(backgroundColor));

return nativeImage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ protected ConfigScreenMixin(Component title) {
super(title);
}

@Inject(at = @At("TAIL"), method = "onClose", remap = false)
@Inject(at = @At("TAIL"), method = "onClose")
private void afterOnClose(CallbackInfo ci) {
ClientCache.DATA_CACHE.sync();
ClientCache.DATA_CACHE.refreshDynamicResources();
Expand Down

0 comments on commit 91b15f2

Please sign in to comment.