forked from GeyserMC/Geyser
Add velocity platform support
This commit is contained in:
parent
3e4fd618e5
commit
e8a1e0dae1
6 changed files with 363 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue