File tree Expand file tree Collapse file tree
src/main/java/cam72cam/mod/resource Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717
1818import javax .annotation .Nullable ;
1919import java .io .*;
20+ import java .nio .charset .StandardCharsets ;
2021import java .util .*;
2122import java .util .function .Function ;
2223import java .util .function .Predicate ;
@@ -358,7 +359,12 @@ public InternalDataPack() {
358359 @ Override
359360 public InputStream getInputStream (String resourcePath ) throws IOException {
360361 if ("pack.mcmeta" .equals (resourcePath )) {
361- return new ByteArrayInputStream ("{}" .getBytes ());
362+ return new ByteArrayInputStream (("{\n " +
363+ " \" pack\" : {\n " +
364+ " \" description\" : \" UMC Generated Data\" ,\n " +
365+ " \" pack_format\" : 4\n " +
366+ " }\n " +
367+ "}" ).getBytes (StandardCharsets .UTF_8 ));
362368 }
363369
364370 return new ByteArrayInputStream (data .get (nameToLocation (resourcePath ).internal ));
You can’t perform that action at this time.
0 commit comments