mirror of
https://github.com/catfoolyou/Alpha-1.1.2_01.git
synced 2025-06-02 04:40:57 -05:00
EPK sound loading
This commit is contained in:
parent
7b02ab9240
commit
77ca5d219d
@ -4,6 +4,7 @@ import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.util.Map;
|
||||
|
||||
import net.peyton.eagler.minecraft.AudioUtils;
|
||||
import org.teavm.jso.typedarrays.ArrayBuffer;
|
||||
import org.teavm.jso.typedarrays.Uint8Array;
|
||||
|
||||
@ -147,6 +148,12 @@ public class EPKLoader {
|
||||
if(zis.read() != ':') {
|
||||
throw new IOException("File '" + name + "' is incomplete");
|
||||
}
|
||||
|
||||
String s = path + name;
|
||||
if(s.contains(".ogg")) {
|
||||
AudioUtils.addFile(s);
|
||||
}
|
||||
|
||||
loadedFiles.put(path + name, load);
|
||||
}else {
|
||||
zis.skip(len);
|
||||
|
Loading…
x
Reference in New Issue
Block a user