From e7a4b462001e01b5d3a9c1efe7bc6caa721f10cd Mon Sep 17 00:00:00 2001 From: Christian Mesh Date: Mon, 18 Sep 2023 10:07:00 -0400 Subject: [PATCH] 1.19.4 --- build.gradle | 6 +++--- src/main/java/trackapi/lib/Util.java | 2 +- src/main/resources/META-INF/mods.toml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index 19efa4d..654d05f 100644 --- a/build.gradle +++ b/build.gradle @@ -24,7 +24,7 @@ String baseVersion = "1.2" if (!"release".equalsIgnoreCase(System.getProperty("target"))) { baseVersion += "-" + Util.GitRevision() } -version = "1.18.2-forge-" + baseVersion +version = "1.19.4-forge-" + baseVersion group = "trackapi" // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = "TrackAPI" @@ -34,7 +34,7 @@ minecraft { // stable_# Stables are built at the discretion of the MCP team. // Use non-default mappings at your own risk. they may not always work. // Simply re-run your setup task after changing the mappings to update your workspace. - mappings channel: 'official', version: '1.18.2' + mappings channel: 'official', version: '1.19.4' // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable. // accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg') @@ -100,7 +100,7 @@ dependencies { // Specify the version of Minecraft to use, If this is any group other then 'net.minecraft' it is assumed // that the dep is a ForgeGradle 'patcher' dependency. And it's patches will be applied. // The userdev artifact is a special name and will get all sorts of transformations applied to it. - minecraft 'net.minecraftforge:forge:1.18.2-40.0.22' + minecraft 'net.minecraftforge:forge:1.19.4-45.1.19' // You may put jars on which you depend on in ./libs or you may define them like so.. // compile "some.group:artifact:version:classifier" diff --git a/src/main/java/trackapi/lib/Util.java b/src/main/java/trackapi/lib/Util.java index 9461e46..3996699 100644 --- a/src/main/java/trackapi/lib/Util.java +++ b/src/main/java/trackapi/lib/Util.java @@ -9,7 +9,7 @@ public class Util { private static ITrack getInternalTileEntity(final Level world, Vec3 pos, boolean acceptMinecraftRails) { - final BlockPos bp = new BlockPos(Math.floor(pos.x), Math.floor(pos.y), Math.floor(pos.z)); + final BlockPos bp = new BlockPos((int)Math.floor(pos.x), (int)Math.floor(pos.y), (int)Math.floor(pos.z)); BlockState bs = world.getBlockState(bp); if (bs.getBlock() instanceof ITrackBlock) { diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/mods.toml index 0e7707e..12306d5 100644 --- a/src/main/resources/META-INF/mods.toml +++ b/src/main/resources/META-INF/mods.toml @@ -16,6 +16,6 @@ description='''A common track interface for minecraft forge''' [[dependencies.trackapi]] modId="minecraft" mandatory=true - versionRange="[1.18.2]" + versionRange="[1.19.4]" ordering="NONE" side="BOTH"