mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-24 22:04:23 +00:00
Remove usage of sun.* in MineTweakerImplementationAPI
This commit is contained in:
1 parent
86b4108e4f
commit
a348865dda
1 file changed
+1
-2
@@ -27,7 +27,6 @@ import minetweaker.api.world.IBiome;
|
||||
import minetweaker.runtime.IScriptProvider;
|
||||
import minetweaker.util.EventList;
|
||||
import minetweaker.util.IEventHandler;
|
||||
import sun.awt.HeadlessToolkit;
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.datatransfer.Clipboard;
|
||||
@@ -686,7 +685,7 @@ public class MineTweakerImplementationAPI {
|
||||
|
||||
private static void copyToClipboard(String value) {
|
||||
StringSelection stringSelection = new StringSelection(value);
|
||||
if (!(Toolkit.getDefaultToolkit() instanceof HeadlessToolkit)) {
|
||||
if (Desktop.isDesktopSupported()) {
|
||||
Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
|
||||
clipboard.setContents(stringSelection, null);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user