Skip to content

Commit

Permalink
Fixed aliased instance check for JitPack
Browse files Browse the repository at this point in the history
  • Loading branch information
CommandJoo committed Nov 24, 2024
1 parent 241c097 commit efd847b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/de/curses/window/components/Window.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,10 @@ public void drawStringIndependent(int x, int y, String s, int width, int color)

public void drawComponent(Component comp) {
if (comp != null) {
if(comp instanceof Window window) {
if(comp instanceof Window) {
Window window = ((Window) comp);
window.drawWindow();
}else {
} else {
comp.draw();
}
this.touch();
Expand Down

0 comments on commit efd847b

Please sign in to comment.