From 054143994138f26b882434ed7b494f9ceb06efbf Mon Sep 17 00:00:00 2001 From: Ray Neiheiser Date: Mon, 4 Nov 2024 22:39:52 +0100 Subject: [PATCH] fix compile errors --- .../minecolonies/api/entity/citizen/AbstractEntityCitizen.java | 2 +- src/main/java/com/minecolonies/core/colony/ColonyView.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/minecolonies/api/entity/citizen/AbstractEntityCitizen.java b/src/main/java/com/minecolonies/api/entity/citizen/AbstractEntityCitizen.java index 4ca1ae4dc6f..d84ceaf319b 100755 --- a/src/main/java/com/minecolonies/api/entity/citizen/AbstractEntityCitizen.java +++ b/src/main/java/com/minecolonies/api/entity/citizen/AbstractEntityCitizen.java @@ -249,7 +249,7 @@ protected PlayerTeam getAssignedTeam() { return null; } - return citizenColonyHandler.getTeam(level); + return citizenColonyHandler.getTeam(level()); } /** diff --git a/src/main/java/com/minecolonies/core/colony/ColonyView.java b/src/main/java/com/minecolonies/core/colony/ColonyView.java index efecf3b7817..22a9a36c3b1 100644 --- a/src/main/java/com/minecolonies/core/colony/ColonyView.java +++ b/src/main/java/com/minecolonies/core/colony/ColonyView.java @@ -1258,7 +1258,7 @@ public boolean isDay() @Override public PlayerTeam getTeam() { - return world.getScoreboard().getPlayerTeam(IColony.getTeamName(world, id)); + return getWorld().getScoreboard().getPlayerTeam(IColony.getTeamName(getWorld(), id)); } @Override