Skip to content

Commit

Permalink
🎨 update
Browse files Browse the repository at this point in the history
  • Loading branch information
kitUIN committed Sep 30, 2024
1 parent a190392 commit 8c41abd
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
16 changes: 16 additions & 0 deletions .idea/ModAliasState.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

import io.github.kituin.chatimage.ChatImage;
import net.minecraft.client.Minecraft;
import net.minecraft.client.MouseHandler;
import net.minecraft.client.gui.screens.ChatScreen;
import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
Expand All @@ -14,7 +12,7 @@
import java.nio.file.Path;
import java.util.List;

@Mixin(MouseHandler.class)
@Mixin(#MouseHandler#.class)
public class FileDragMixin {

@Shadow
Expand All @@ -30,8 +28,9 @@ private void onFilesDropped(long window, List<Path> paths, CallbackInfo ci) {
sb.append("[[CICode,url=file:///").append(o).append("]]");
} else {
sb.append("file:///").append(o);
} }
this.minecraft.setScreen(new ChatScreen(sb.toString()));
}
}
this.minecraft.setScreen(new #ChatScreen#(sb.toString()));
}
}
}
}
Binary file not shown.

0 comments on commit 8c41abd

Please sign in to comment.