Null check.

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

View File

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