-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
[12:50:33] [main/INFO]: Initializing the game... | ||
[12:50:33] [main/INFO]: Game initializated! | ||
[22:25:35] [main/INFO]: OpenCraft 24r03 started! |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package net.opencraft.data.packs; | ||
|
||
import java.io.FileInputStream; | ||
import java.io.InputStream; | ||
|
||
public final class DefaultPack extends Pack { | ||
|
||
private static final DefaultPack defaultPack = new DefaultPack(); | ||
|
||
public DefaultPack() { | ||
} | ||
|
||
public static Pack getDefaultPack() { | ||
return DefaultPack.defaultPack; | ||
} | ||
|
||
@Override | ||
public InputStream getResource(String resource) { | ||
InputStream in = InputStream.nullInputStream(); | ||
|
||
System.out.println("Resource adquired: " + resource); | ||
try { | ||
in = new FileInputStream(resource); | ||
} catch (Exception ignored) { | ||
} | ||
|
||
return in; | ||
} | ||
|
||
} |