Skip to content

Commit

Permalink
Update to Minecraft 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
Adubbz committed Jun 14, 2024
1 parent bfea924 commit ff1ba93
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Common/src/main/java/terrablender/DimensionTypeTags.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class DimensionTypeTags {
public static final TagKey<DimensionType> NETHER_REGIONS = create("nether_regions");

private static TagKey<DimensionType> create(String id) {
return TagKey.create(Registries.DIMENSION_TYPE, new ResourceLocation(TerraBlender.MOD_ID, id));
return TagKey.create(Registries.DIMENSION_TYPE, ResourceLocation.fromNamespaceAndPath(TerraBlender.MOD_ID, id));
}

public static void init() {}
Expand Down
2 changes: 1 addition & 1 deletion Common/src/main/java/terrablender/api/Region.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
public abstract class Region
{
/* A resource key used to indicate that biome selection should be deferred to Vanilla's region. */
public static final ResourceKey<Biome> DEFERRED_PLACEHOLDER = ResourceKey.create(Registries.BIOME, new ResourceLocation(TerraBlender.MOD_ID, "deferred_placeholder"));
public static final ResourceKey<Biome> DEFERRED_PLACEHOLDER = ResourceKey.create(Registries.BIOME, ResourceLocation.fromNamespaceAndPath(TerraBlender.MOD_ID, "deferred_placeholder"));

private final ResourceLocation name;
private RegionType type;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ private static void registerSimple(ResourceKey key, BuiltInRegistries.RegistryBo
bootstrap.run(registry);

// Run our bootstrap
return Registry.register(registry, new ResourceLocation(TerraBlender.MOD_ID, "merged"), NamespacedSurfaceRuleSource.CODEC.codec());
return Registry.register(registry, ResourceLocation.fromNamespaceAndPath(TerraBlender.MOD_ID, "merged"), NamespacedSurfaceRuleSource.CODEC.codec());
})));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

public class DefaultNetherRegion extends Region
{
public static final ResourceLocation LOCATION = new ResourceLocation("minecraft:nether");
public static final ResourceLocation LOCATION = ResourceLocation.fromNamespaceAndPath("minecraft", "nether");

public DefaultNetherRegion(int weight)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

public class DefaultOverworldRegion extends Region
{
public static final ResourceLocation LOCATION = new ResourceLocation("minecraft:overworld");
public static final ResourceLocation LOCATION = ResourceLocation.fromNamespaceAndPath("minecraft", "overworld");

public DefaultOverworldRegion(int weight)
{
Expand Down
2 changes: 1 addition & 1 deletion Fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"depends": {
"fabricloader": "*",
"fabric": "*",
"minecraft": "1.20.x",
"minecraft": "1.21.x",
"java": ">=17"
},
"accessWidener": "terrablender.accesswidener",
Expand Down
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ group=com.github.glitchfiend
release_channel=beta

# Common
minecraft_version=1.20.6
minecraft_version=1.21
common_runs_enabled=false
common_client_run_name=Common Client
common_server_run_name=Common Server

# Forge
forge_version=50.0.5
forge_version=51.0.4

# NeoForge
neoforge_version=20.6.24-beta
neoforge_version=21.0.0-beta

# Fabric
fabric_version=0.97.8+1.20.6
fabric_version=0.100.1+1.21
fabric_loader_version=0.15.11

# Mod options
Expand Down

0 comments on commit ff1ba93

Please sign in to comment.