Add velocity platform support

This commit is contained in:
RednedEpic 2020-02-08 13:43:25 -06:00
parent 3e4fd618e5
commit e8a1e0dae1
6 changed files with 363 additions and 1 deletions

View file

@ -46,6 +46,7 @@ public class FileUtils {
public static File fileOrCopiedFromResource(File file, String name, Function<String, String> s) throws IOException {
if (!file.exists()) {
file.createNewFile();
FileOutputStream fos = new FileOutputStream(file);
InputStream input = GeyserConnector.class.getResourceAsStream("/" + name); // resources need leading "/" prefix