Skip to content

Commit

Permalink
Update for 1.20.5-pre1.
Browse files Browse the repository at this point in the history
- Update for 1.20.5-pre1
  • Loading branch information
gniftygnome committed Apr 12, 2024
1 parent 8156407 commit 05957f4
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 25 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
# Use these Java versions
java: [17]
java: [21]
os: [ubuntu-20.04]
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -32,7 +32,7 @@ jobs:
- name: Build
run: ./gradlew build --stacktrace
- name: Capture build artifacts
if: ${{ runner.os == 'Linux' && matrix.java == '17' }} # Only upload artifacts built from LTS java on one OS
if: ${{ runner.os == 'Linux' && matrix.java == '21' }} # Only upload artifacts built from LTS java on one OS
uses: actions/upload-artifact@v4
with:
name: Artifacts
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
# Use these Java versions
java: [17]
java: [21]
# and run on both Linux and Windows
os: [ubuntu-20.04]
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
DISCORD_ANNOUNCEMENT_WEBHOOK: ${{ secrets.DISCORD_ANNOUNCEMENT_WEBHOOK }}
- name: Capture build artifacts
if: ${{ runner.os == 'Linux' && matrix.java == '17' }} # Only upload artifacts built from LTS java on one OS
if: ${{ runner.os == 'Linux' && matrix.java == '21' }} # Only upload artifacts built from LTS java on one OS
uses: actions/upload-artifact@v4
with:
name: Artifacts
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id "architectury-plugin" version "3.4-SNAPSHOT"
id 'dev.architectury.loom' version '1.5-SNAPSHOT' apply(false)
id 'dev.architectury.loom' version '1.6-SNAPSHOT' apply(false)
}

architectury {
Expand Down Expand Up @@ -56,7 +56,7 @@ allprojects {

tasks.withType(JavaCompile).configureEach {
it.options.encoding = 'UTF-8'
it.options.getRelease().set(17)
it.options.getRelease().set(21)
}

java {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,33 +14,33 @@
@Mixin(TheEndBiomes.class)
public class MixinFapiTheEndBiomes {
@Inject(method = "addMainIslandBiome", at = @At("HEAD"), cancellable = true)
private static void biolith$scrapeEndMainIslandReplacement(RegistryKey<Biome> variant, double weight, CallbackInfo ci) {
BiomePlacement.replaceEnd(BiomeKeys.THE_END, variant, weight / (1d + weight));
private static void biolith$scrapeEndMainIslandReplacement(RegistryKey<Biome> biome, double weight, CallbackInfo ci) {
BiomePlacement.replaceEnd(BiomeKeys.THE_END, biome, weight / (1d + weight));
ci.cancel();
}

@Inject(method = "addHighlandsBiome", at = @At("HEAD"), cancellable = true)
private static void biolith$scrapeEndHighlandsReplacement(RegistryKey<Biome> variant, double weight, CallbackInfo ci) {
BiomePlacement.replaceEnd(BiomeKeys.END_HIGHLANDS, variant, weight / (1d + weight));
private static void biolith$scrapeEndHighlandsReplacement(RegistryKey<Biome> biome, double weight, CallbackInfo ci) {
BiomePlacement.replaceEnd(BiomeKeys.END_HIGHLANDS, biome, weight / (1d + weight));
ci.cancel();
}

@Inject(method = "addSmallIslandsBiome", at = @At("HEAD"), cancellable = true)
private static void biolith$scrapeEndSmallIslandsReplacement(RegistryKey<Biome> variant, double weight, CallbackInfo ci) {
BiomePlacement.replaceEnd(BiomeKeys.SMALL_END_ISLANDS, variant, weight / (1d + weight));
private static void biolith$scrapeEndSmallIslandsReplacement(RegistryKey<Biome> biome, double weight, CallbackInfo ci) {
BiomePlacement.replaceEnd(BiomeKeys.SMALL_END_ISLANDS, biome, weight / (1d + weight));
ci.cancel();
}

@Inject(method = "addMidlandsBiome", at = @At("HEAD"), cancellable = true)
private static void biolith$scrapeEndMidlandsReplacement(RegistryKey<Biome> highlands, RegistryKey<Biome> variant, double weight, CallbackInfo ci) {
BiomePlacement.addSubEnd(BiomeKeys.END_MIDLANDS, variant,
private static void biolith$scrapeEndMidlandsReplacement(RegistryKey<Biome> highlands, RegistryKey<Biome> midlands, double weight, CallbackInfo ci) {
BiomePlacement.addSubEnd(BiomeKeys.END_MIDLANDS, midlands,
SubBiomeMatcher.of(SubBiomeMatcher.Criterion.ofAlternate(SubBiomeMatcher.CriterionTargets.ALTERNATE, highlands, BiomeKeys.END_HIGHLANDS, false)));
ci.cancel();
}

@Inject(method = "addBarrensBiome", at = @At("HEAD"), cancellable = true)
private static void biolith$scrapeBarrensReplacement(RegistryKey<Biome> highlands, RegistryKey<Biome> variant, double weight, CallbackInfo ci) {
BiomePlacement.addSubEnd(BiomeKeys.END_BARRENS, variant,
private static void biolith$scrapeBarrensReplacement(RegistryKey<Biome> highlands, RegistryKey<Biome> barrens, double weight, CallbackInfo ci) {
BiomePlacement.addSubEnd(BiomeKeys.END_BARRENS, barrens,
SubBiomeMatcher.of(SubBiomeMatcher.Criterion.ofAlternate(SubBiomeMatcher.CriterionTargets.ALTERNATE, highlands, BiomeKeys.END_HIGHLANDS, false)));
ci.cancel();
}
Expand Down
5 changes: 1 addition & 4 deletions fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@
"depends": {
"fabricloader": ">=0.15",
"fabric-api": "*",
"minecraft": ">=1.20.4 <1.21"
},
"breaks": {
"terrablender": "<3.0.0"
"minecraft": ">1.20.4 <1.21"
}
}
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ maven_group=com.terraformersmc
enabled_platforms=fabric

# Common
minecraft_version=24w07a
yarn_mappings=24w07a+build.4
minecraft_version=1.20.5-pre1
yarn_mappings=1.20.5-pre1+build.5

# Fabric
fabric_api_version=0.96.3+1.20.5
fabric_loader_version=0.15.7
fabric_api_version=0.96.15+1.20.5
fabric_loader_version=0.15.9

# Forge
forge_version=1.20.4-49.0.30
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit 05957f4

Please sign in to comment.