Skip to content

Commit

Permalink
Fixed issue with oculus mod, removed resource pack caching
Browse files Browse the repository at this point in the history
  • Loading branch information
LatvianModder committed Dec 9, 2023
1 parent e2db3c9 commit 6600f28
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public static List<PackResources> inject(Minecraft client, List<PackResources> p
public GeneratedClientResourcePack(Minecraft client) {
super(PackType.CLIENT_RESOURCES);
this.client = client;
getGenerated();
}

@Override
Expand Down Expand Up @@ -152,7 +153,8 @@ public void generate(Map<ResourceLocation, GeneratedData> map) {

@Override
protected boolean forgetFile(String path) {
return path.endsWith(".png") || path.endsWith(".ogg");
// return path.endsWith(".png") || path.endsWith(".ogg");
return super.forgetFile(path);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public Map<ResourceLocation, GeneratedData> getGenerated() {
}

protected boolean forgetFile(String path) {
return false;
return true;
}

protected boolean skipFile(GeneratedData data) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
public class GeneratedServerResourcePack extends GeneratedResourcePack {
public GeneratedServerResourcePack() {
super(PackType.SERVER_DATA);
getGenerated();
}

@Override
Expand All @@ -26,4 +27,10 @@ public void generate(Map<ResourceLocation, GeneratedData> map) {

KubeJSPlugins.forEachPlugin(generator, KubeJSPlugin::generateDataJsons);
}

@Override
protected boolean forgetFile(String path) {
// return path.endsWith(".png") || path.endsWith(".ogg");
return super.forgetFile(path);
}
}

0 comments on commit 6600f28

Please sign in to comment.