mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-24 22:04:23 +00:00
Merge remote-tracking branch 'origin/legacy' into gtnh-legacy
# Conflicts: # gradle/wrapper/gradle-wrapper.properties
This commit is contained in:
commit
dc78b2b39e
21 files changed
+160
-125
No files matched your search
@@ -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;
|
||||
@@ -692,7 +691,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