MassiveCore - Editor Changes

This commit is contained in:
Olof Larsson committed 2016-05-10 13:03:37 +02:00
1 parent df4c031842
commit 44d525446b
1 file changed
+11 -1
@@ -886,8 +886,18 @@ public class BoardUtil extends Engine
{
String id = getKey(key);
Team team = getTeam(board, id, false);
if (team == null && creative) team = createPersonalTeam(board, key);
if (team == null)
{
if (creative)
{
team = createPersonalTeam(board, key);
}
}
else
{
addTeamMember(team, key);
}
return team;
}