Skip to content

Commit

Permalink
Remove RegistryType since it's not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
octylFractal authored and me4502 committed Sep 14, 2024
1 parent 26accae commit 9d6dd57
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
import com.sk89q.worldedit.extension.platform.Locatable;
import com.sk89q.worldedit.function.mask.Mask;
import com.sk89q.worldedit.internal.annotation.Offset;
import com.sk89q.worldedit.internal.annotation.RegistryType;
import com.sk89q.worldedit.internal.command.CommandRegistrationHandler;
import com.sk89q.worldedit.internal.command.CommandUtil;
import com.sk89q.worldedit.internal.cui.ServerCUIHandler;
Expand Down Expand Up @@ -532,7 +531,6 @@ public Component call() throws Exception {
@CommandPermissions("worldedit.registry")
public void registry(Actor actor,
@Arg(desc = "The registry to search through")
@RegistryType
Registry<?> registry,
@ArgFlag(name = 'p', desc = "Page of results to return", def = "1")
int page,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import com.google.common.collect.ImmutableList;
import com.google.common.reflect.TypeToken;
import com.sk89q.worldedit.command.util.SuggestionHelper;
import com.sk89q.worldedit.internal.annotation.RegistryType;
import com.sk89q.worldedit.registry.Keyed;
import com.sk89q.worldedit.registry.Registry;
import com.sk89q.worldedit.util.formatting.text.Component;
Expand Down Expand Up @@ -76,7 +75,7 @@ public static void register(CommandManager commandManager) {
);

// This must be separate as it has a generic type
commandManager.registerConverter(Key.of(new TypeToken<>() {}, RegistryType.class), new RegistryConverter<>(Registry.REGISTRY));
commandManager.registerConverter(Key.of(new TypeToken<>() {}), new RegistryConverter<>(Registry.REGISTRY));
}

@SuppressWarnings("unchecked")
Expand Down

This file was deleted.

0 comments on commit 9d6dd57

Please sign in to comment.