Skip to content

Commit f6dac54

Browse files
port 1.21.4 neoforge
1 parent a965c16 commit f6dac54

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ String baseVersion = "1.2"
2929
if (!"release".equalsIgnoreCase(System.getProperty("target"))) {
3030
baseVersion += "-" + Util.GitRevision()
3131
}
32-
version = "1.21.1-neoforge-" + baseVersion
32+
version = "1.21.4-neoforge-" + baseVersion
3333
group = "trackapi" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
3434
archivesBaseName = "TrackAPI"
3535

@@ -68,7 +68,7 @@ runs {
6868
systemProperty 'neoforge.enabledGameTestNamespaces', 'trackapi'
6969
}
7070

71-
data {
71+
clientData {
7272
// example of overriding the workingDirectory set in configureEach above, uncomment if you want to use it
7373
// workingDirectory project.file('run-data')
7474

@@ -82,7 +82,7 @@ sourceSets.main.resources { srcDir 'src/generated/resources' }
8282

8383
dependencies {
8484

85-
implementation 'net.neoforged:neoforge:21.1.54'
85+
implementation 'net.neoforged:neoforge:21.4.156'
8686

8787
// You may put jars on which you depend on in ./libs or you may define them like so..
8888
// compile "some.group:artifact:version:classifier"

src/main/java/trackapi/compat/MinecraftRail.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import net.minecraft.world.phys.Vec3;
44
import net.minecraft.core.BlockPos;
5-
import net.minecraft.world.entity.vehicle.Minecart;
65
import net.minecraft.world.level.Level;
76
import net.minecraft.world.level.block.BaseRailBlock;
87
import net.minecraft.world.level.block.state.BlockState;
@@ -54,7 +53,7 @@ public MinecraftRail(Level world, BlockPos pos) {
5453
this.pos = pos;
5554
BlockState state = world.getBlockState(pos);
5655
BaseRailBlock blockrailbase = (BaseRailBlock)state.getBlock();
57-
this.direction = blockrailbase.getRailDirection(state, world, pos, new Minecart(world, pos.getX(), pos.getY(), pos.getZ()));
56+
this.direction = blockrailbase.getRailDirection(state, world, pos, null/*new Minecart(world, pos.getX(), pos.getY(), pos.getZ())*/);
5857
}
5958

6059
@Override

src/main/resources/META-INF/neoforge.mods.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ description='''A common track interface for neoforge'''
1010
[[dependencies.trackapi]]
1111
modId="neoforge"
1212
type='required'
13-
versionRange="[21.1.1,)"
13+
versionRange="[21.4.1,)"
1414
ordering="NONE"
1515
side="BOTH"
1616
[[dependencies.trackapi]]
1717
modId="minecraft"
1818
type='required'
19-
versionRange="[1.21.1]"
19+
versionRange="[1.21.4]"
2020
ordering="NONE"
2121
side="BOTH"

0 commit comments

Comments
 (0)