mirror of
https://github.com/TeamMidnightDust/CullLeaves.git
synced 2025-12-16 06:15:08 +01:00
Update everything to 1.19.3
This commit is contained in:
@@ -26,7 +26,7 @@ subprojects {
|
|||||||
// The following line declares the mojmap mappings, you may use other mappings as well
|
// The following line declares the mojmap mappings, you may use other mappings as well
|
||||||
//mappings loom.officialMojangMappings()
|
//mappings loom.officialMojangMappings()
|
||||||
// The following line declares the yarn mappings you may select this one as well.
|
// The following line declares the yarn mappings you may select this one as well.
|
||||||
mappings "net.fabricmc:yarn:1.19.2+build.3:v2"
|
mappings "net.fabricmc:yarn:1.19.3+build.3:v2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"pack": {
|
"pack": {
|
||||||
"pack_format": 9,
|
"pack_format": 12,
|
||||||
"description": "§2Makes leaves look identical to OptiFine's smart leaves"
|
"description": "§2Makes leaves look identical to OptiFine's smart leaves"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ dependencies {
|
|||||||
// Remove the next line if you don't want to depend on the API
|
// Remove the next line if you don't want to depend on the API
|
||||||
//modApi "dev.architectury:architectury-forge:${rootProject.architectury_version}"
|
//modApi "dev.architectury:architectury-forge:${rootProject.architectury_version}"
|
||||||
modImplementation "maven.modrinth:midnightlib:${rootProject.midnightlib_version}-forge"
|
modImplementation "maven.modrinth:midnightlib:${rootProject.midnightlib_version}-forge"
|
||||||
include "maven.modrinth:midnightlib:${rootProject.midnightlib_version}-forge"
|
//include "maven.modrinth:midnightlib:${rootProject.midnightlib_version}-forge"
|
||||||
|
|
||||||
common(project(path: ":common", configuration: "namedElements")) { transitive false }
|
common(project(path: ":common", configuration: "namedElements")) { transitive false }
|
||||||
shadowCommon(project(path: ":common", configuration: "transformProductionForge")) { transitive = false }
|
shadowCommon(project(path: ":common", configuration: "transformProductionForge")) { transitive = false }
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package eu.midnightdust.cullleaves.forge;
|
package eu.midnightdust.cullleaves.forge;
|
||||||
|
|
||||||
import net.minecraft.resource.*;
|
import net.minecraft.resource.*;
|
||||||
import net.minecraft.resource.metadata.PackResourceMetadata;
|
|
||||||
import net.minecraft.text.Text;
|
import net.minecraft.text.Text;
|
||||||
import net.minecraft.util.Identifier;
|
import net.minecraft.util.Identifier;
|
||||||
import net.minecraftforge.api.distmarker.Dist;
|
import net.minecraftforge.api.distmarker.Dist;
|
||||||
@@ -12,8 +11,6 @@ import net.minecraftforge.fml.common.Mod;
|
|||||||
import net.minecraftforge.forgespi.locating.IModFile;
|
import net.minecraftforge.forgespi.locating.IModFile;
|
||||||
import net.minecraftforge.resource.PathPackResources;
|
import net.minecraftforge.resource.PathPackResources;
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
|
|
||||||
@Mod.EventBusSubscriber(modid = "cullleaves", bus = Mod.EventBusSubscriber.Bus.MOD, value = Dist.CLIENT)
|
@Mod.EventBusSubscriber(modid = "cullleaves", bus = Mod.EventBusSubscriber.Bus.MOD, value = Dist.CLIENT)
|
||||||
public class CullLeavesClientEvents {
|
public class CullLeavesClientEvents {
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
@@ -23,11 +20,11 @@ public class CullLeavesClientEvents {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
private static void registerResourcePack(AddPackFindersEvent event, Identifier id, boolean alwaysEnabled) {
|
private static void registerResourcePack(AddPackFindersEvent event, Identifier id, boolean alwaysEnabled) {
|
||||||
event.addRepositorySource(((profileAdder, factory) -> {
|
event.addRepositorySource((profileAdder -> {
|
||||||
IModFile file = ModList.get().getModFileById(id.getNamespace()).getFile();
|
IModFile file = ModList.get().getModFileById(id.getNamespace()).getFile();
|
||||||
try (PathPackResources pack = new PathPackResources(id.toString(), file.findResource("resourcepacks/"+id.getPath()))) {
|
try (PathPackResources pack = new PathPackResources(id.toString(), true, file.findResource("resourcepacks/"+id.getPath()))) {
|
||||||
profileAdder.accept(new ResourcePackProfile(id.toString(), alwaysEnabled, () -> pack, Text.of(id.getNamespace()+"/"+id.getPath()), pack.parseMetadata(PackResourceMetadata.READER).getDescription().copy().append(" §7(built-in)"), ResourcePackCompatibility.COMPATIBLE, ResourcePackProfile.InsertionPosition.TOP, false, ResourcePackSource.PACK_SOURCE_BUILTIN, false));
|
profileAdder.accept(ResourcePackProfile.create(id.toString(), Text.of(id.getNamespace()+"/"+id.getPath()), alwaysEnabled, a -> pack, ResourceType.CLIENT_RESOURCES, ResourcePackProfile.InsertionPosition.TOP, ResourcePackSource.BUILTIN));
|
||||||
} catch (IOException | NullPointerException e) {e.printStackTrace();}
|
} catch (NullPointerException e) {e.printStackTrace();}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,20 +1,20 @@
|
|||||||
org.gradle.jvmargs=-Xmx4096M
|
org.gradle.jvmargs=-Xmx4096M
|
||||||
|
|
||||||
minecraft_version=1.19.2
|
minecraft_version=1.19.3
|
||||||
enabled_platforms=quilt,fabric,forge
|
enabled_platforms=quilt,fabric,forge
|
||||||
|
|
||||||
archives_base_name=cullleaves
|
archives_base_name=cullleaves
|
||||||
mod_version=3.0.1
|
mod_version=3.0.2
|
||||||
maven_group=eu.midnightdust
|
maven_group=eu.midnightdust
|
||||||
|
|
||||||
architectury_version=6.2.43
|
architectury_version=6.2.43
|
||||||
midnightlib_version=1.0.0
|
midnightlib_version=1.1.0
|
||||||
sodium_version=mc1.19.2-0.4.4
|
sodium_version=mc1.19.2-0.4.4
|
||||||
|
|
||||||
fabric_loader_version=0.14.9
|
fabric_loader_version=0.14.11
|
||||||
fabric_api_version=0.59.0+1.19.2
|
fabric_api_version=0.69.1+1.19.3
|
||||||
|
|
||||||
forge_version=1.19.2-43.0.8
|
forge_version=1.19.3-44.0.18
|
||||||
|
|
||||||
quilt_loader_version=0.17.2-beta.3
|
quilt_loader_version=0.18.1-beta.23
|
||||||
quilt_fabric_api_version=4.0.0-beta.7+0.59.0-1.19.2
|
quilt_fabric_api_version=5.0.0-beta.2+0.68.1-1.19.3
|
||||||
|
|||||||
Reference in New Issue
Block a user