Merge remote-tracking branch 'origin/legacy' into gtnh-legacy

# Conflicts:
#	gradle/wrapper/gradle-wrapper.properties
This commit is contained in:
DreamMasterXXL committed 2021-08-02 18:21:35 +02:00
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);
}