private void onLevelLoaded(int level) { if (level > Level.SETUP) { StructureManager.regions = new StructureRegion[(int)Regions.WORLD_SIZE, (int)Regions.WORLD_SIZE]; for (byte b = 0; b < Regions.WORLD_SIZE; b += 1) { for (byte b2 = 0; b2 < Regions.WORLD_SIZE; b2 += 1) { StructureManager.regions[(int)b, (int)b2] = new StructureRegion(); } } StructureManager.structureColliders = new List <Collider>(); StructureManager.instanceCount = 0u; if (Provider.isServer) { StructureManager.load(); } } }