diff --git a/src/bot/bot/plugin.py b/src/bot/bot/plugin.py index a9fb2b1..21d38c3 100644 --- a/src/bot/bot/plugin.py +++ b/src/bot/bot/plugin.py @@ -1,6 +1,6 @@ from mcdreforged.api.types import PluginServerInterface -from bot.constants import CONFIG_FILE_NAME +from bot.constants import CONFIG_FILE_NAME, DIMENSION from bot.config import Config from bot.bot_manager import BotManager from bot.command_handler import CommandHandler @@ -99,5 +99,5 @@ def get_location(self, name: str) -> Location: """ api = self.minecraft_data_api info = api.get_player_info(name) - dimension = api.get_player_dimension(name) + dimension = DIMENSION.INT_TRANSLATION.get(info['Dimension']) return Location(info['Pos'], info['Rotation'], dimension)