Skip to content

Commit a5c8d06

Browse files
committed
some changes on bad implementations
1 parent 2902678 commit a5c8d06

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/me/srrapero720/chloride/impl/FastBlocks.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,20 @@ public static final class ModEvents {
5151

5252
@SubscribeEvent
5353
public static void registerResourcePacks(AddPackFindersEvent e) {
54-
Chloride.LOGGER.info("Register CHLORIDE packs");
54+
Chloride.LOGGER.info("Registering CHLORIDE built-in packs");
5555
if (e.getPackType() == PackType.CLIENT_RESOURCES) {
5656
SOLID_BEDS_PACK = Pack.readMetaAndCreate(Chloride.ID + "_solid_beds",
5757
Component.literal("Chloride: Solid Beds"),
5858
false,
59-
id -> getPathResources(Chloride.ID, "custom_packs/solid_beds"),
59+
id -> getPathResources(id, "custom_packs/solid_beds"),
6060
PackType.CLIENT_RESOURCES,
6161
Pack.Position.TOP,
6262
PackSource.BUILT_IN);
6363

6464
SOLID_CHESTS_PACK = Pack.readMetaAndCreate(Chloride.ID + "_solid_chests",
6565
Component.literal("Chloride: Solid Chests"),
6666
false,
67-
id -> getPathResources(Chloride.ID, "custom_packs/solid_chests"),
67+
id -> getPathResources(id, "custom_packs/solid_chests"),
6868
PackType.CLIENT_RESOURCES,
6969
Pack.Position.TOP,
7070
PackSource.BUILT_IN);
@@ -78,9 +78,9 @@ public static void registerResourcePacks(AddPackFindersEvent e) {
7878

7979
}
8080

81-
private static PathPackResources getPathResources(String name, String path) {
81+
private static PathPackResources getPathResources(String packId, String path) {
8282
final IModFile modFile = ModList.get().getModFileById(Chloride.ID).getFile();
83-
return new PathPackResources(name, true, modFile.findResource(path)) {
83+
return new PathPackResources(packId, true, modFile.findResource(path)) {
8484
@NotNull
8585
protected Path resolve(String... paths) {
8686
final String[] allPaths = new String[paths.length + 1];

0 commit comments

Comments
 (0)