Skip to content

Commit

Permalink
Continue backporting to 1.19.2
Browse files Browse the repository at this point in the history
  • Loading branch information
DakotaPride committed Aug 10, 2024
1 parent 2b458ca commit 327aafa
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import net.minecraft.server.packs.PackType;
import net.minecraft.server.packs.repository.Pack;
import net.minecraft.server.packs.repository.PackSource;
import net.minecraft.world.flag.FeatureFlagSet;
import net.minecraftforge.event.AddPackFindersEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.ModList;
Expand Down Expand Up @@ -39,13 +38,13 @@ private static void registerBuiltinResourcePack(AddPackFindersEvent event, Mutab
String path = new ResourceLocation(MOD_ID, folder).toString();
IModFile file = ModList.get().getModFileById(MOD_ID).getFile();
try (PathPackResources pack = new PathPackResources(
path, true, file.findResource("resourcepacks/" + folder))) {
path, file.findResource("resourcepacks/" + folder))) {
consumer.accept(Pack.create(
new ResourceLocation(MOD_ID, folder).toString(),
name,
false,
(pack1) -> pack,
new Pack.Info(Component.literal("hibernalherbs/" + folder), 15, FeatureFlagSet.of()),
new Pack.Position(Component.literal("hibernalherbs/" + folder), 15, FeatureFlagSet.of()),
PackType.CLIENT_RESOURCES,
Pack.Position.TOP,
false,
Expand Down
28 changes: 14 additions & 14 deletions Forge/src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,30 +27,30 @@ displayName="Hibernal Herbs" #mandatory
# A URL for the "homepage" for this mod, displayed in the mod UI
#displayURL="https://change.me.to.your.mods.homepage.example.invalid/" #optional
# A file name (in the root of the mod JAR) containing a logo for display
logoFile="icon.png" #optional
logoFile="assets/hibernalherbs/icon.png" #optional
# A text field displayed in the mod UI
credits="" #optional
# A text field displayed in the mod UI
authors="DakotaPride, HoloScopeStudios" #optional
authors="DakotaPride" #optional
# The description text for the mod (multi line!) (#mandatory)
description='''[MMD Winterjam 2022] Wanna celebrate the holidays with a touch of mystical blends? Here you are!'''
# A dependency - use the . to indicate dependency for a specific modid. Dependencies are optional.
[[dependencies.hibernalherbs]] #optional
# the modid of the dependency
modId="forge" #mandatory
# Does this dependency have to exist - if not, ordering below must be specified
mandatory=true #mandatory
# The version range of the dependency
versionRange="[46,)" #mandatory
# An ordering relationship for the dependency - BEFORE or AFTER required if the relationship is not mandatory
ordering="NONE"
# Side this dependency is applied on - BOTH, CLIENT or SERVER
side="BOTH"
# the modid of the dependency
modId="forge" #mandatory
# Does this dependency have to exist - if not, ordering below must be specified
mandatory=true #mandatory
# The version range of the dependency
versionRange="[43,)" #mandatory
# An ordering relationship for the dependency - BEFORE or AFTER required if the relationship is not mandatory
ordering="NONE"
# Side this dependency is applied on - BOTH, CLIENT or SERVER
side="BOTH"
[[dependencies.hibernalherbs]]
modId="patchouli"
mandatory=true
versionRange="[1.20.1-81,)"
versionRange="[1.19.2-77,)"
[[dependencies.hibernalherbs]]
modId="curios"
mandatory=true
versionRange="[1.20.1-5.2.0,)"
versionRange="[1.19.2-5.1.3.0,)"

0 comments on commit 327aafa

Please sign in to comment.