Skip to content

Commit

Permalink
fix(more_command_nodes): πŸ› fix import error by mcdr 2.13 (resolve #199)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnzhiZhang committed Jul 1, 2024
1 parent 56b7826 commit 8a10565
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/more_command_nodes/more_command_nodes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import Type, Iterable

from mcdreforged.api.command import *
from mcdreforged.command.builder import command_builder_util
from mcdreforged.command.builder import command_builder_utils as utils

__all__ = [
'FloatsArgument',
Expand Down Expand Up @@ -90,7 +90,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 = command_builder_util.get_element(text)
arg = utils.get_element(text)
try:
enum = self.__enum_class(arg)
except ValueError:
Expand Down

0 comments on commit 8a10565

Please sign in to comment.