diff --git a/build.gradle b/build.gradle index 4735422..6d68614 100644 --- a/build.gradle +++ b/build.gradle @@ -26,10 +26,10 @@ dependencies { // Fabric API. This is technically optional, but you probably want it anyway. modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" - modImplementation "io.github.onyxstudios.Cardinal-Components-API:cardinal-components-base:2.4.0" - modImplementation "io.github.onyxstudios.Cardinal-Components-API:cardinal-components-chunk:2.4.0" - include "io.github.onyxstudios.Cardinal-Components-API:cardinal-components-base:2.4.0" - include "io.github.onyxstudios.Cardinal-Components-API:cardinal-components-chunk:2.4.0" + modImplementation "io.github.onyxstudios.Cardinal-Components-API:cardinal-components-base:2.6.0" + modImplementation "io.github.onyxstudios.Cardinal-Components-API:cardinal-components-chunk:2.6.0" + include "io.github.onyxstudios.Cardinal-Components-API:cardinal-components-base:2.6.0" + include "io.github.onyxstudios.Cardinal-Components-API:cardinal-components-chunk:2.6.0" } processResources { diff --git a/gradle.properties b/gradle.properties index 8f15bb7..4493291 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,9 +3,9 @@ org.gradle.jvmargs=-Xmx1G # Fabric Properties # check these on https://fabricmc.net/use - minecraft_version=1.16.1 - yarn_mappings=1.16.1+build.5 - loader_version=0.8.8+build.202 + minecraft_version=1.16.3 + yarn_mappings=1.16.3+build.27 + loader_version=0.10.0+build.208 # Mod Properties mod_version = 1.1.0 @@ -14,4 +14,4 @@ org.gradle.jvmargs=-Xmx1G # Dependencies # currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api - fabric_version=0.13.1+build.370-1.16 + fabric_version=0.22.1+build.409-1.16 diff --git a/src/main/java/io/github/theepicblock/concraftwaylifeofgamemine/ConwayStep.java b/src/main/java/io/github/theepicblock/concraftwaylifeofgamemine/ConwayStep.java index efcc2bf..9e134ee 100644 --- a/src/main/java/io/github/theepicblock/concraftwaylifeofgamemine/ConwayStep.java +++ b/src/main/java/io/github/theepicblock/concraftwaylifeofgamemine/ConwayStep.java @@ -33,7 +33,7 @@ public void add(Chunk chunk) { } public void add(ChunkPos pos) { - add(world.getChunk(pos.getCenterBlockPos())); + add(world.getChunk(pos.x, pos.z)); } public void doStuff() { diff --git a/src/main/java/io/github/theepicblock/concraftwaylifeofgamemine/mixin/ServerChunkManagerMixin.java b/src/main/java/io/github/theepicblock/concraftwaylifeofgamemine/mixin/ServerChunkManagerMixin.java index 67cc05a..aa42cdf 100644 --- a/src/main/java/io/github/theepicblock/concraftwaylifeofgamemine/mixin/ServerChunkManagerMixin.java +++ b/src/main/java/io/github/theepicblock/concraftwaylifeofgamemine/mixin/ServerChunkManagerMixin.java @@ -34,7 +34,7 @@ public void startTick(CallbackInfo ci){ public void chunkUpdateInject(long something, boolean something2, SpawnHelper.Info spawnInfo, boolean something3, int nothing, ChunkHolder chunkHolder, CallbackInfo ci) { this.world.getProfiler().push("conwayBlocks"); if (ConwayMain.isTickConway(world.getServer().getTicks())) { - Chunk chunk = chunkHolder.getCompletedChunk(); + Chunk chunk = chunkHolder.getCurrentChunk(); if (chunk != null && ChunkHolder.getLevelType(chunkHolder.getLevel()).isAfter(ChunkHolder.LevelType.TICKING)) { ConwayCurrentStep.add(chunk); }