Null check.

This commit is contained in:
Brianna 2020-06-06 19:32:31 -05:00
parent 2399e68c67
commit df87a4aa7f

View File

@ -215,7 +215,8 @@ public class IslandManager {
return false;
}
data.setIslandCreationCount(amt + 1);
if (data != null)
data.setIslandCreationCount(amt + 1);
Island island = new Island(player);
island.setStructure(structure.getName());