Skip to content

Commit

Permalink
fix(more_command_nodes): πŸ› fix import util
Browse files Browse the repository at this point in the history
  • Loading branch information
AnzhiZhang committed Jul 8, 2022
1 parent 284ba8f commit 25f933b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions more_command_nodes/more_command_nodes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from typing import Type, Union, Iterable

from mcdreforged.api.command import *
from mcdreforged.command.builder.command_builder_util import get_element
from mcdreforged.command.builder import command_builder_util

__all__ = [
'FloatsArgument',
Expand Down Expand Up @@ -82,7 +82,7 @@ def _get_suggestions(self, context: CommandContext) -> Iterable[str]:
return map(lambda e: e.value, self.__enum_class)

def parse(self, text: str) -> ParseResult:
arg = get_element(text)
arg = command_builder_util.get_element(text)
try:
enum = self.__enum_class(arg)
except ValueError:
Expand Down

0 comments on commit 25f933b

Please sign in to comment.