Skip to content

Commit

Permalink
Improve search algorithm (spiral search) and improve accuracy of stro…
Browse files Browse the repository at this point in the history
…nghold search. Also remember to actually use cubiomesVersion rather than hard coding MC_1_20
  • Loading branch information
acheong08 committed Mar 8, 2024
1 parent df61565 commit 14c0b1a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ configurations {

dependencies {
// This will make it work on most platforms. It automatically chooses the right dependencies at runtime.
extraLibs('dev.duti.acheong:cubiomes:1.21.4') { transitive = false }
extraLibs('dev.duti.acheong:cubiomes:1.21.4:linux64') { transitive = false }
extraLibs('dev.duti.acheong:cubiomes:1.21.4:osx') { transitive = false }
extraLibs('dev.duti.acheong:cubiomes:1.21.4:windows64') { transitive = false }
extraLibs('dev.duti.acheong:cubiomes:1.22.0') { transitive = false }
extraLibs('dev.duti.acheong:cubiomes:1.22.0:linux64') { transitive = false }
extraLibs('dev.duti.acheong:cubiomes:1.22.0:osx') { transitive = false }
extraLibs('dev.duti.acheong:cubiomes:1.22.0:windows64') { transitive = false }
// To change the versions see the gradle.properties file
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_version}:v2"
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/anticope/rejects/commands/LocateCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public void build(LiteralArgumentBuilder<CommandSource> builder) {
Pos pos = null;
if (cubiomesVersion != null) {
pos = Cubiomes.GetNearestStructure(feature, playerPos.getX(), playerPos.getZ(), seed,
Cubiomes.MCVersion.MC_1_20, 8);
cubiomesVersion);
} else {
BlockPos bpos = WorldGenUtils.locateFeature(feature, playerPos);
pos = new Pos();
Expand Down

0 comments on commit 14c0b1a

Please sign in to comment.