Skip to content

Commit bd5ca35

Browse files
committed
Fix CommandTreeNodeTypes & FlatGeneratorConfigs registry scope
1 parent 8dcad8b commit bd5ca35

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/main/java/org/spongepowered/api/command/registrar/tree/CommandTreeNodeTypes.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* The known {@link CommandTreeNodeType types} available on the vanilla client.
3838
*/
3939
@SuppressWarnings("unused")
40-
@RegistryScopes(scopes = RegistryScope.GAME)
40+
@RegistryScopes(scopes = RegistryScope.ENGINE)
4141
public final class CommandTreeNodeTypes {
4242

4343
// @formatter:off
@@ -134,10 +134,10 @@ private CommandTreeNodeTypes() {
134134
}
135135

136136
public static Registry<CommandTreeNodeType<?>> registry() {
137-
return Sponge.game().registry(RegistryTypes.COMMAND_TREE_NODE_TYPE);
137+
return Sponge.server().registry(RegistryTypes.COMMAND_TREE_NODE_TYPE);
138138
}
139139

140140
private static <T extends CommandTreeNode<T>> DefaultedRegistryReference<CommandTreeNodeType<T>> key(final ResourceKey location) {
141-
return RegistryKey.of(RegistryTypes.COMMAND_TREE_NODE_TYPE, location).asDefaultedReference(Sponge::game);
141+
return RegistryKey.of(RegistryTypes.COMMAND_TREE_NODE_TYPE, location).asDefaultedReference(Sponge::server);
142142
}
143143
}

src/main/java/org/spongepowered/api/world/generation/config/flat/FlatGeneratorConfigs.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* <!-- This file is automatically generated. Any manual changes will be overwritten. -->
3838
*/
3939
@SuppressWarnings("unused")
40-
@RegistryScopes(scopes = RegistryScope.GAME)
40+
@RegistryScopes(scopes = RegistryScope.ENGINE)
4141
public final class FlatGeneratorConfigs {
4242

4343
public static final DefaultedRegistryReference<FlatGeneratorConfig> BOTTOMLESS_PIT = FlatGeneratorConfigs.key(ResourceKey.minecraft("bottomless_pit"));
@@ -62,10 +62,10 @@ private FlatGeneratorConfigs() {
6262
}
6363

6464
public static Registry<FlatGeneratorConfig> registry() {
65-
return Sponge.game().registry(RegistryTypes.FLAT_GENERATOR_CONFIG);
65+
return Sponge.server().registry(RegistryTypes.FLAT_GENERATOR_CONFIG);
6666
}
6767

6868
private static DefaultedRegistryReference<FlatGeneratorConfig> key(final ResourceKey location) {
69-
return RegistryKey.of(RegistryTypes.FLAT_GENERATOR_CONFIG, location).asDefaultedReference(Sponge::game);
69+
return RegistryKey.of(RegistryTypes.FLAT_GENERATOR_CONFIG, location).asDefaultedReference(Sponge::server);
7070
}
7171
}

0 commit comments

Comments
 (0)