- Fixed multiple saplings with the same ID not working in the Planter

- Fixed crash when using /mt hand on a dedicated server
- Fixed crash in /mt recipes in some cases
This commit is contained in:
Stan Hebben committed 2014-10-16 23:03:53 +02:00
1 parent 59ef38877f
commit 7d886a3ce3
37 files changed
+500 -99

No files matched your search

@@ -7,6 +7,9 @@
package minetweaker.mc172.server;
import java.awt.Desktop;
import java.awt.Toolkit;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.StringSelection;
import java.io.IOException;
import java.net.URI;
import java.util.logging.Level;
@@ -106,6 +109,15 @@ public class ServerPlayer implements IPlayer {
}
}
}
@Override
public void copyToClipboard(String value) {
if (Desktop.isDesktopSupported()) {
StringSelection stringSelection = new StringSelection(value);
Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
clipboard.setContents(stringSelection, null);
}
}
@Override
public void give(IItemStack stack) {