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