MassiveCore - Editor Changes

This commit is contained in:
Olof Larsson 2016-05-10 13:03:37 +02:00
parent df4c031842
commit 44d525446b
No known key found for this signature in database
GPG Key ID: BBEF14F97DA52474

View File

@ -886,8 +886,18 @@ public class BoardUtil extends Engine
{ {
String id = getKey(key); String id = getKey(key);
Team team = getTeam(board, id, false); Team team = getTeam(board, id, false);
if (team == null && creative) team = createPersonalTeam(board, key); if (team == null)
addTeamMember(team, key); {
if (creative)
{
team = createPersonalTeam(board, key);
}
}
else
{
addTeamMember(team, key);
}
return team; return team;
} }