Skip to content

Commit

Permalink
Update to handle gradle & paper update
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Herrera <[email protected]>
  • Loading branch information
Pablete1234 committed Nov 21, 2024
1 parent ac41d72 commit 5d82ff0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ publishing {

tasks {
processResources {
filesMatching(listOf("plugin.yml")) {
filesMatching(listOf("plugin.yml", "paper-plugin.yml")) {
expand(
"name" to project.name,
"description" to project.description,
Expand Down
10 changes: 5 additions & 5 deletions core/src/main/resources/paper-plugin.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: PGM
api-version: 1.20.6
description: ${project.parent.description}
main: ${project.mainClass}
version: ${project.version} (git-${git.commit.id.abbrev})
website: ${project.parent.url}
api-version: 1.21.1
description: ${description}
main: ${mainClass}
version: ${version} (git-${commitHash})
website: ${url}
bootstrapper: tc.oc.pgm.platform.modern.PgmBootstrap

dependencies:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import java.util.Map;
import net.minecraft.core.registries.Registries;
import net.minecraft.resources.ResourceKey;
import net.minecraft.world.level.dimension.DimensionType;
import tc.oc.pgm.util.reflect.ReflectionUtils;

/**
Expand All @@ -25,7 +24,7 @@ public class PgmRegistryKey {
List<RegistryEntry<?, ?>> entries = List.of(RegistryEntry.writable(
Registries.DIMENSION_TYPE,
PgmRegistryKey.DIMENSION_TYPE,
DimensionType.class,
PgmRegistryKey.class, // Dummy class to load, has no bearing.
CraftDimensionType::new,
CraftDimensionType.Builder::new));

Expand Down

0 comments on commit 5d82ff0

Please sign in to comment.