diff --git a/gradle.properties b/gradle.properties index b45cd277..46aad27b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,9 +1,9 @@ org.gradle.jvmargs=-Xmx2G maven_group=com.terraformersmc.terraform-api -version=5.0.0-alpha.3 +version=5.0.0-beta.1 -minecraft_version=1.19.3-pre3 -yarn_mappings=1.19.3-pre3+build.1 +minecraft_version=1.19.3 +yarn_mappings=1.19.3+build.1 loader_version=0.14.11 -fabric_version=0.68.0+1.19.3 +fabric_version=0.68.1+1.19.3 diff --git a/terraform-wood-api-v1/src/main/java/com/terraformersmc/terraform/boat/impl/TerraformBoatInitializer.java b/terraform-wood-api-v1/src/main/java/com/terraformersmc/terraform/boat/impl/TerraformBoatInitializer.java index 60797fe8..1351fec9 100644 --- a/terraform-wood-api-v1/src/main/java/com/terraformersmc/terraform/boat/impl/TerraformBoatInitializer.java +++ b/terraform-wood-api-v1/src/main/java/com/terraformersmc/terraform/boat/impl/TerraformBoatInitializer.java @@ -1,5 +1,7 @@ package com.terraformersmc.terraform.boat.impl; +import com.terraformersmc.terraform.boat.api.TerraformBoatType; +import com.terraformersmc.terraform.boat.api.TerraformBoatTypeRegistry; import com.terraformersmc.terraform.boat.impl.entity.TerraformBoatEntity; import com.terraformersmc.terraform.boat.impl.entity.TerraformChestBoatEntity; @@ -15,6 +17,10 @@ public final class TerraformBoatInitializer implements ModInitializer { private static final EntityDimensions DIMENSIONS = EntityDimensions.fixed(1.375f, 0.5625f); + // Hack that prevents the following crash during client startup: + // Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.terraformersmc.terraform.boat.api.TerraformBoatTypeRegistry + private static final Registry registryInstance = TerraformBoatTypeRegistry.INSTANCE; + private static final Identifier BOAT_ID = new Identifier("terraform", "boat"); public static final EntityType BOAT = FabricEntityTypeBuilder.create(SpawnGroup.MISC, TerraformBoatEntity::new) .dimensions(DIMENSIONS)